Skip to main content

is_retryable

Method
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

Returns

bool
The result of the operation.

Source

View on GitHub

praisonaiagents/run_outcome.py at line 149