REPL and agent visualization
Two small helpers for the building stage. See how run_demo_loop gives you a chat with your agent in a terminal, and how draw_graph turns a team of agents, tools and handoffs into a picture.
8 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 8 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