Autonomy Result • AI Agent SDK
AutonomyResult: Result of an autonomous execution.
AutonomyResult
Defined in the autonomy module.
AI Agent
Result of an autonomous execution.
Attributes: success: Whether the task completed successfully output: Final output/response completion_reason: Why execution stopped. One of the `TerminationReason` string values: goal, tool_completion, promise, no_tool_calls, max_iterations, timeout, budget_exhausted, doom_loop, needs_help, interrupted, cancelled, error. iterations: Number of iterations executed stage: Final execution stage actions: List of actions taken duration_seconds: Total execution time error: Error message if failed started_at: ISO 8601 timestamp when execution started metadata: Optional structured metadata (e.g. spend_usd/tokens/status on a budget_exhausted outcome)
Properties
boolNo description available.
strNo description available.
strNo description available.
intNo description available.
strNo description available.
ListNo description available.
floatNo description available.
Optional[str]No description available.
Optional[str]No description available.
OptionalNo description available.
Source
View on GitHubpraisonaiagents/agent/autonomy.py at line 369