@camera.ui/sdk / plugin / AssistantModelChunk
Type Alias: AssistantModelChunk ​
AssistantModelChunk = {
delta:string;type:"text"; } | {call:AssistantModelToolCall;type:"tool_call"; } | {completionTokens:number;promptTokens:number;type:"usage"; } | {finish:"stop"|"tool_calls"|"length"|"error";message?:string;type:"done"; }
Defined in: plugin/assistant-models.ts:106
A piece of the answer. Yield text as it is generated, tool_call once the arguments are complete, usage when the model reports token counts, and done exactly once at the end.