Streaming
With streaming, your app receives events while the agent is still working. See raw model events that carry the answer piece by piece, run item events that report finished steps, and the correct way to stop a streamed run early.
12 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 12 minutes.
Written from the official documentation
In this module: Running agents
- RunConfigOne object of settings that applies to a whole run.Pro
- ResultsFinal output, new items, next input and what to do after a run.Pro
- StreamingRaw model events and run item events as the agent works.Pro
- Error handlers and exceptionsMax turns, model errors and how a run recovers or fails.Pro
- REPL and agent visualizationChat with an agent in a terminal and draw its graph.Pro