Skip to main content

AgentRunOutcome

Defined in the Run Outcome module.
AI Agent Structured outcome for agent execution, validation, and handoff operations. Replaces freeform string parsing with typed status values that callers can match exhaustively. Provides structured metadata for debugging and retry policies.

Properties

RunStatus
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
float
No description available.
Optional[str]
No description available.
Optional[str]
No description available.
Optional
No description available.

Methods

success()

Create a successful outcome.

failure()

Create a general failure outcome.

timeout()

Create a timeout outcome.

cancelled()

Create a cancelled outcome.

invalid_output()

Create an invalid output outcome.

is_success()

Check if the outcome represents successful completion.

is_failure()

Check if the outcome represents any kind of failure.

is_retryable()

Check if this outcome represents a potentially retryable failure.
  • to_dict: Convert to dictionary for serialization or logging.

Usage

Source

View on GitHub

praisonaiagents/run_outcome.py at line 78

Agents Concept

Single Agent Guide

Multi-Agent Guide

Agent Configuration

Auto Agents