Skip to main content

Module retry

Module retry 

Source
Expand description

Provider HTTP retry logic.

Wraps outbound API calls (Z.AI, OpenAI, etc.) with infinite-retry exponential backoff so transient overload / rate-limit / 5xx errors never terminate an agentic session. Used by provider complete and complete_stream implementations in super::zai.

Functionsยง

send_response_with_retry
Send a streaming request with automatic retry on transient HTTP errors.
send_with_retry
Send an HTTP request with automatic retry on transient errors.