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
def is_retryable() -> boolReturns
ResponseField
boolThe result of the operation.
Source
View on GitHubpraisonaiagents/run_outcome.py at line 149