create

Creates a new Request instance with the provided prompt and a list of tools.

Return

A new Request instance initialized with the given prompt and tool data.

Parameters

prompt

The Prompt object containing the messages, ID, and parameters to construct the request.

tools

A list of ToolDescriptor objects to be included in the request. Each tool is converted to a JSON representation.