ModelRequest
このコンテンツはまだ日本語訳がありません。
type ModelRequest = object;
A request to a large language model.
Properties
Section titled “Properties”conversationId?
Section titled “conversationId?”optional conversationId: string;
The ID of stored conversation to use for the model.
see https://platform.openai.com/docs/guides/conversation-state?api-mode=responses#openai-apis-for-conversation-state see https://platform.openai.com/docs/api-reference/conversations/create
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.
prompt?
Section titled “prompt?”optional prompt: Prompt;
The prompt template to use for the model, if any.
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.