Skip to main content

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

bool
No description available.
str
No description available.
str
No description available.
int
No description available.
str
No description available.
List
No description available.
float
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional
No description available.

Source

View on GitHub

praisonaiagents/agent/autonomy.py at line 314