Type Alias ChatStreamEvent
ChatStreamEvent:
| { stage: string; type: "stage" }
| { text: string; type: "token" }
| {
autoLimited: boolean;
collection?: string;
explanation?: string;
sql: string;
type: "sql";
}
| { code: string; retryable: boolean; type: "error"; userMessage: string }
| { type: "done" }
Type Declaration
- { stage: string; type: "stage" }
- { text: string; type: "token" }
- {
autoLimited: boolean;
collection?: string;
explanation?: string;
sql: string;
type: "sql";
}
-
ReadonlyautoLimited: boolean
-
Optional Readonlycollection?: string
-
Optional Readonlyexplanation?: string
-
Readonlysql: string
-
Readonlytype: "sql"
- { code: string; retryable: boolean; type: "error"; userMessage: string }
- { type: "done" }
Streaming event emitted by POST /chat (SSE).