@camera.ui/sdk / plugin / AssistantToolResult
Interface: AssistantToolResult ​
Defined in: plugin/assistant.ts:122
Result of a tool call. Return error for problems the model can repair by asking differently (unknown camera, empty range); throw only for failures that should end the run.
Properties ​
content? ​
optionalcontent?:string|Record<string,unknown> |unknown[]
Defined in: plugin/assistant.ts:124
Text or JSON the model reads. The host serializes JSON.
error? ​
optionalerror?:string
Defined in: plugin/assistant.ts:130
User-level problem the model may repair. Replaces content.
images? ​
optionalimages?:AssistantToolImage[]
Defined in: plugin/assistant.ts:126
Images to show and, when allowed, to send to the model.
references? ​
optionalreferences?:AssistantToolReference[]
Defined in: plugin/assistant.ts:128
Things the chat should offer to open, at most a handful per result.