Results
Every run hands back one result object. Learn what is inside it, including the final output, the last agent, the list of new items and the raw model responses, and how to use it to start the next turn of a conversation.
11 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 11 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