
//#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