Skip to content

@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? ​

optional content?: string | Record<string, unknown> | unknown[]

Defined in: plugin/assistant.ts:124

Text or JSON the model reads. The host serializes JSON.


error? ​

optional error?: string

Defined in: plugin/assistant.ts:130

User-level problem the model may repair. Replaces content.


images? ​

optional images?: AssistantToolImage[]

Defined in: plugin/assistant.ts:126

Images to show and, when allowed, to send to the model.


references? ​

optional references?: AssistantToolReference[]

Defined in: plugin/assistant.ts:128

Things the chat should offer to open, at most a handful per result.