Streaming
Read a run while it is still happening. Watch a flow send StreamFrame objects in order, print the model's words as they arrive, filter by channel, and collect the final result at the end.
10 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 10 minutes.
Written from the official documentation
In this module: Streaming, events and hooks
- StreamingStreamFrame, channels and reading a run as it happens.Pro
- Event listenersSubscribing to the event bus for logging and monitoring.Pro
- Execution hooksThe @on decorator around runs, steps, LLM calls and tools.Pro
- Checkpointing and replaySaving run state, resuming after a failure, replaying a task.Pro