Streaming agents
Notebook· 02.06· 90–120 min· Lesson 24 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Stream an agent's progress step by step with
stream_mode="updates". - Stream the model's tokens with
stream_mode="messages", and filter them by node. - Emit and receive custom progress events (
stream_writer+stream_mode="custom"). - Combine modes with
version="v2"stream parts (type,ns,data) and render them withmastery.agents.format_stream_part. - Try the new
stream_events(version="v3")API, and know it's marked experimental. - Stream asynchronously with
astreamin a notebook.
Before you start
Lessons 02.03–02.04. Lesson 01.03 (streaming a model).
