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

# Run Outcome • AI Agent SDK

> RunOutcome: Closed, canonical description of how an agent run ended.

# RunOutcome

> Defined in the [**Run Outcome**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/run_outcome.md) module.

AI Agent

Closed, canonical description of how an agent run ended.

Attributes:
reason: One of `completed | hard_timeout | cancelled | aborted | failed`.
output: Partial or final text, if any.
error: Redacted message when `reason == "failed"`.

## Properties

**reason** `TerminalReason`

No description available.

**output** `Optional[str]`

No description available.

**error** `Optional[str]`

No description available.

## Methods

> [card] [completed()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/RunOutcome-completed.md)
>
> Class method.

> [card] [from\_exception()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/RunOutcome-from_exception.md)
>
> Normalise a raised exception into a canonical terminal outcome.

> [card] [succeeded()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/RunOutcome-succeeded.md)
>
> True only when the run completed normally.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/run_outcome.py#L55)
>
> `praisonaiagents/agent/run_outcome.py` at line 55


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.