@copilotkit/runtime
Version:
<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />
22 lines (21 loc) • 513 B
text/typescript
//#region src/v2/runtime/core/middleware-sse-parser.d.ts
/** Minimal message shape reconstructed from AG-UI events. */
interface Message {
id: string;
role: string;
content?: string;
toolCalls?: ToolCall[];
toolCallId?: string;
}
interface ToolCall {
id: string;
name: string;
args: string;
}
/**
* Parse a cloned SSE Response body into structured messages.
* Returns empty results for non-SSE responses.
*/
//#endregion
export { Message };
//# sourceMappingURL=middleware-sse-parser.d.cts.map