UNPKG

weaviate-agents

Version:
15 lines (14 loc) 481 B
export type ServerSentEvent = { event: string; data: string; }; /** * Fetch Server-Sent Events (SSE) from a URL. * * All fields other than "event" and "data" are ignored * * @param input - The URL to fetch the SSE from. * @param init - The request init options. * @returns An async generator of ServerSentEvent objects. */ export declare function fetchServerSentEvents(input: string | URL | globalThis.Request, init?: RequestInit): AsyncGenerator<ServerSentEvent>;