UNPKG

@adonis-agora/agent

Version:

Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.

15 lines • 633 B
/** One dispatched server-sent event (WHATWG HTML, "Server-sent events"). */ export interface SseEvent { /** `message` when the stream gave no `event:` field. */ event: string; data: string; /** The `id:` field of this event, if it had one. */ id?: string | undefined; retry?: number | undefined; } /** * Parses an SSE byte stream. Follows the WHATWG algorithm closely enough for Poppy: CRLF/CR/LF * line endings, `:` comments, multi-line `data`, `id` without NUL, `retry`. */ export declare function parseSse(stream: ReadableStream<Uint8Array>): AsyncGenerator<SseEvent>; //# sourceMappingURL=sse.d.ts.map