Skip to main content

Module retry

Module retry 

Source
Expand description

Retry logic and streaming fallback handling.

When streaming fails mid-response, the retry handler can:

  • Discard partial tool executions with synthetic error blocks
  • Fall back to a smaller model on repeated overload errors
  • Apply exponential backoff with jitter

Structs§

RetryConfig
Retry configuration.
RetryState
State tracker for retry logic across multiple attempts.

Enums§

RetryAction
Action the caller should take after a failure.
RetryableError
Categorized error for retry logic.