This method retrieves the current state of the agent, including its progress, actions taken, and any errors or messages.
status = agent.status()

Returns

LegacyAgentStatusResponse: The current status of the agent execution.

Raises

  • ValueError: If the agent hasn’t been run yet (no agent_id available).