> ## 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.

# Termination Reason • AI Agent SDK

> TerminationReason: Typed terminal reasons for an autonomous run.

# TerminationReason

> Defined in the [**Run Outcome**](../modules/run_outcome) module.

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

Typed terminal reasons for an autonomous run.

String *values* are identical to the free strings historically emitted by
`run_autonomous`/`AutonomyResult.completion_reason` so existing callers
that string-match keep working (`TerminationReason.GOAL_MET == "goal"`).

Subclassing `str` keeps equality/serialisation backward compatible; the
new `BUDGET_EXHAUSTED` value is the spend kill-switch terminal state.

## Source

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