Skip to content

@camera.ui/sdk / plugin / AssistantModelMessage

Interface: AssistantModelMessage ​

Defined in: plugin/assistant-models.ts:51

One message of the conversation. tool messages carry the result of the call with the matching toolCallId.

Properties ​

content ​

content: AssistantModelContent[]

Defined in: plugin/assistant-models.ts:55

Text and images of the message.


role ​

role: "user" | "assistant" | "tool"

Defined in: plugin/assistant-models.ts:53

Who wrote it.


toolCallId? ​

optional toolCallId?: string

Defined in: plugin/assistant-models.ts:59

Call this message answers, on tool messages.


toolCalls? ​

optional toolCalls?: AssistantModelToolCall[]

Defined in: plugin/assistant-models.ts:57

Tool calls the assistant asked for, on assistant messages.