Overview
StreamChunk
@dataclass
class StreamChunk:
type: str # "text_delta" | "thinking_delta" | "tool_call" | "done"
text: str = ""
thinking: bool = False
tool_call: dict | None = None
usage: UsageInfo | None = NoneSync Streaming (WSGI)
Async Streaming (ASGI)
SSE Format
JavaScript Client Example
Configuration
Last updated
Was this helpful?