Run Terminal • AI Agent SDK
RunTerminal: One authoritative way a run ended — a closed discriminated union.
RunTerminal
Defined in the Run Outcome module.
AI Agent
One authoritative way a run ended — a closed discriminated union.
`kind is the collapsed terminal category; source records which observer produced it (used to decide stickiness). RunTerminal is frozen so a recorded outcome is immutable — refinement happens by producing a new instance via :func:merge_run_terminal`, never by mutation.
Properties
ResponseField
TerminalKindNo description available.
ResponseField
TerminalSourceNo description available.
ResponseField
Optional[str]No description available.
Internal & Generic Methods
- from_dict: Rehydrate from a plain dict produced by :meth:
to_dict. - to_dict: Serialise to a plain dict (JSON/SQLite friendly, round-trippable).
Source
View on GitHubpraisonaiagents/run_outcome.py at line 371