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. is_done() does not imply success. is_successful() reports the agent’s own assessment; verify important external outcomes, such as a submitted form or a completed purchase, against the destination system.