Interface LLMStreamHandler

interface LLMStreamHandler {
    onComplete?: (response: LLMResponse) => void;
    onContent?: (content: string) => void;
    onError?: (error: Error) => void;
    onStart?: () => void;
    onToolUse?: (toolCall: ToolCall) => void;
}

Properties

onComplete?: (response: LLMResponse) => void
onContent?: (content: string) => void
onError?: (error: Error) => void
onStart?: () => void
onToolUse?: (toolCall: ToolCall) => void