Configures client-side retry behavior for adapter failures.
Retries are only attempted for normalized AttractorEx.LLM.Error values marked as
retryable, or when a custom retry_if callback explicitly opts in.
Summary
Types
@type retry_if() :: (AttractorEx.LLM.Error.t(), pos_integer() -> boolean())
@type t() :: %AttractorEx.LLM.RetryPolicy{ base_delay_ms: non_neg_integer(), jitter_ratio: float(), max_attempts: pos_integer(), max_delay_ms: non_neg_integer(), retry_if: retry_if() | nil }
Functions
@spec delay_ms(t(), AttractorEx.LLM.Error.t(), pos_integer()) :: non_neg_integer()
@spec retry?(t(), AttractorEx.LLM.Error.t(), pos_integer()) :: boolean()