/** * Agent streaming handlers for OpenAI and Anthropic protocols. * * Parses SSE streams and accumulates tool calls from deltas. */ import { ToolCall } from './tools'; export interface AgentChatResponse { content: string; toolCalls: ToolCall[]; usedNativeTools: boolean; } /** * Handle streaming response (text-based fallback, no native tools) */ export declare function handleStream(body: ReadableStream, protocol: string, onChunk: (chunk: string) => void): Promise; /** * Handle OpenAI streaming response with tool call accumulation */ export declare function handleOpenAIAgentStream(body: ReadableStream, onChunk: (chunk: string) => void, model: string, providerId: string): Promise; /** * Handle Anthropic streaming response with tool call accumulation */ export declare function handleAnthropicAgentStream(body: ReadableStream, onChunk: (chunk: string) => void, model: string, providerId: string): Promise;