Skip to main content

Type Alias: AssistantEvent

AssistantEvent = { text: string; type: "text"; } | { callId: string; name: string; type: "tool_started"; } | { callId: string; name: string; ok: boolean; type: "tool_finished"; } | { lastUpdatedUtc: string | null; source: string; type: "provenance"; } | { fallbackUsed: boolean; provider: ProviderName; type: "final"; usage: TokenUsage | null; } | { kind: AiErrorKind; message: string; type: "error"; }

Defined in: src/server/ai/chat/types.ts:101

Public events the loop yields to the route/UI. error carries only a curated, user-safe message.