Skip to main content

Agent History

The run() method returns an AgentHistoryList object with the complete execution history:
See all helper methods in the AgentHistoryList source code.

Structured Output

For structured output, use the output_model_schema parameter with a Pydantic model. Example.