ModelRequest
type ModelRequest = object;
A request to a large language model.
Properties
Section titled “Properties”handoffs
Section titled “handoffs”handoffs: SerializedHandoff[];
The handoffs to use for the model.
input: | string | AgentInputItem[];
The input to the model.
modelSettings
Section titled “modelSettings”modelSettings: ModelSettings;
The model settings to use for the model.
outputType
Section titled “outputType”outputType: SerializedOutputType;
The type of the output to use for the model.
previousResponseId?
Section titled “previousResponseId?”optional previousResponseId: string;
The ID of the previous response to use for the model.
signal?
Section titled “signal?”optional signal: AbortSignal;
An optional signal to abort the model request.
systemInstructions?
Section titled “systemInstructions?”optional systemInstructions: string;
The system instructions to use for the model.
tools: SerializedTool[];
The tools to use for the model.
tracing
Section titled “tracing”tracing: ModelTracing;
Whether to enable tracing for the model.