Skip to main content

retry_utils

AI Agent Retry utilities with jittered exponential backoff for the PraisonAI SDK. Provides interrupt-aware retry mechanisms for LLM API calls and tool execution with configurable backoff strategies, jitter, and buffered status reporting.

Import

Classes

RetryBackoffConfig

Configuration for jittered exponential backoff retry behavior.

Functions

jittered_backoff()

Calculate delay for jittered exponential backoff.

interruptible_sleep()

Sleep with periodic interruption checks.