Skip to content

ModelRequest

type ModelRequest = object;

A request to a large language model.

handoffs: SerializedHandoff[];

The handoffs to use for the model.


input:
| string
| AgentInputItem[];

The input to the model.


modelSettings: ModelSettings;

The model settings to use for the model.


outputType: SerializedOutputType;

The type of the output to use for the model.


optional previousResponseId: string;

The ID of the previous response to use for the model.


optional signal: AbortSignal;

An optional signal to abort the model request.


optional systemInstructions: string;

The system instructions to use for the model.


tools: SerializedTool[];

The tools to use for the model.


tracing: ModelTracing;

Whether to enable tracing for the model.