Run Outcome • AI Agent SDK
RunOutcome: Closed, canonical description of how an agent run ended.
RunOutcome
Defined in the Run Outcome 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
ResponseField
TerminalReasonNo description available.
ResponseField
Optional[str]No description available.
ResponseField
Optional[str]No description available.
Methods
completed()
Class method.
from_exception()Normalise a raised exception into a canonical terminal outcome.
succeeded()True only when the run completed normally.
Source
View on GitHubpraisonaiagents/agent/run_outcome.py at line 55