Basic Streaming
ModelResponse object. During streaming, most chunks contain a small piece of the content. The final chunk includes usage metrics.
Streaming with Tools
When the model decides to call a tool during streaming, you’ll receive chunks withtool_calls instead of content: