Type Alias: ChatEventBody
ChatEventBody = {
provider:ProviderInfo;type:"start"; } | {message:string;type:"status"; } | {text:string;type:"text-delta"; } | {text:string;type:"reasoning-delta"; } | {args:Record<string,unknown>;callId:string;name:string;type:"tool-call"; } | {args:Record<string,unknown>;callId:string;name:string;type:"tool-input"; } | {callId:string;error?:string;name:string;result?:unknown;type:"tool-result"; } | {object?:unknown;outcome?:unknown;text:string;type:"finish"; } | {error:Error;type:"error"; }
Defined in: packages/client/src/types.ts:298
Union Members
Type Literal
{ provider: ProviderInfo; type: "start"; }
Type Literal
{ message: string; type: "status"; }
Type Literal
{ text: string; type: "text-delta"; }
Type Literal
{ text: string; type: "reasoning-delta"; }
Type Literal
{ args: Record<string, unknown>; callId: string; name: string; type: "tool-call"; }
Type Literal
{ args: Record<string, unknown>; callId: string; name: string; type: "tool-input"; }
A tool without execute waits for submitToolResult.
Type Literal
{ callId: string; error?: string; name: string; result?: unknown; type: "tool-result"; }
Type Literal
{ object?: unknown; outcome?: unknown; text: string; type: "finish"; }
Type Literal
{ error: Error; type: "error"; }