@camera.ui/sdk / plugin / AssistantModelRequest
Interface: AssistantModelRequest ​
Defined in: plugin/assistant-models.ts:86
One request to a plugin model: the conversation so far plus what the model may do with it.
Properties ​
maxOutputTokens? ​
optionalmaxOutputTokens?:number
Defined in: plugin/assistant-models.ts:98
Upper bound for the answer in tokens, when the host has one.
messages ​
messages:
AssistantModelMessage[]
Defined in: plugin/assistant-models.ts:92
The conversation, oldest first. The host has already trimmed it to contextTokens.
modelId ​
modelId:
string
Defined in: plugin/assistant-models.ts:88
Model id from AssistantModelSpec.id.
outputSchema? ​
optionaloutputSchema?:Record<string,unknown>
Defined in: plugin/assistant-models.ts:96
JSON Schema the answer has to match. Only set for models whose spec says structuredOutput.
system ​
system:
string[]
Defined in: plugin/assistant-models.ts:90
Instructions that precede the conversation.
tools ​
tools:
AssistantModelTool[]
Defined in: plugin/assistant-models.ts:94
Tools the model may call. Empty when the run allows none.