Is Retryable • AI Agent SDK

is_retryable: Check if this outcome represents a potentially retryable failure.

is_retryable

Method

</div>

This is a method of the AgentRunOutcome class in the run_outcome module.

Check if this outcome represents a potentially retryable failure.

Based on the status type:

  • timeout: Generally retryable with longer timeout
  • invalid_output: May be retryable with different prompt/validation
  • failure: Usually not retryable (logic error)
  • cancelled: Not retryable (external signal)

Signature

python
def is_retryable() -> bool

Returns

ResponseField bool

The result of the operation.

Source

View on GitHub

praisonaiagents/run_outcome.py at line 149