Agent History
Therun() method returns an AgentHistoryList object with the complete execution history:
Structured Output
For structured output, use theoutput_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.