> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Autonomy Result • AI Agent SDK

> AutonomyResult: Result of an autonomous execution.

# AutonomyResult

> Defined in the [**autonomy**](../modules/autonomy) module.

<Badge color="blue">AI Agent</Badge>

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 name="success" type="bool">
  No description available.
</ResponseField>

<ResponseField name="output" type="str">
  No description available.
</ResponseField>

<ResponseField name="completion_reason" type="str">
  No description available.
</ResponseField>

<ResponseField name="iterations" type="int">
  No description available.
</ResponseField>

<ResponseField name="stage" type="str">
  No description available.
</ResponseField>

<ResponseField name="actions" type="List">
  No description available.
</ResponseField>

<ResponseField name="duration_seconds" type="float">
  No description available.
</ResponseField>

<ResponseField name="error" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="started_at" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="metadata" type="Optional">
  No description available.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L314">
  `praisonaiagents/agent/autonomy.py` at line 314
</Card>
