Skip to main content

Module stream

Module stream 

Source

Structs§

ChatStreamChunk

Functions§

parse_anthropic_sse_stream
Parse an Anthropic SSE stream into chat chunks.
parse_gemini_sse_stream
Parse a Gemini streamGenerateContent?alt=sse stream into chat chunks.
parse_responses_sse_stream
Parse Responses API SSE events into the existing text/reasoning stream. Function-call events remain available in raw; callers that need a final normalized tool_calls array should use non-streaming completion.
parse_sse_stream
Parse an OpenAI-compatible SSE stream into chat chunks.

Type Aliases§

ChatStream