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

ResponseField bool

No description available.

ResponseField str

No description available.

ResponseField str

No description available.

ResponseField int

No description available.

ResponseField str

No description available.

ResponseField List

No description available.

ResponseField float

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional[str]

No description available.

ResponseField Optional

No description available.

Source

View on GitHub

praisonaiagents/agent/autonomy.py at line 369