agent-sdk-streaming
Installation
SKILL.md
Agent SDK Streaming
Streaming is the difference between "this agent works" and "this agent feels alive". Stream text as it generates, show tool activity, and never block the UI on a long tool call.
When to Use
- Building any interactive agent UI
- Long-running agents where users need to see progress
- Debugging "why does my agent hang?" (often: you're not reading the stream)
Event Types
The SDK emits a typed stream of events. Core types: