Tinkex.RetryConfig (Tinkex v0.2.2)
View SourceUser-facing retry configuration for sampling operations.
Mirrors the Python SDK surface (time-bounded retries with progress timeout, backoff tuning, connection limiting, enable/disable toggle). The struct is designed to be lightweight and easy to pass through opts.
Summary
Functions
Return the default retry configuration.
Build a retry configuration.
Convert to RetryHandler options.
Validate a retry configuration, raising on invalid values.
Types
@type t() :: %Tinkex.RetryConfig{ base_delay_ms: pos_integer(), enable_retry_logic: boolean(), jitter_pct: float(), max_connections: pos_integer(), max_delay_ms: pos_integer(), max_retries: non_neg_integer() | :infinity, progress_timeout_ms: pos_integer() }
Functions
@spec default() :: t()
Return the default retry configuration.
Build a retry configuration.
Accepts keyword options overriding defaults that match the Python RetryConfig defaults (0.5s base delay, 10s cap, 25% jitter, 120m progress timeout, and no retry cap unless explicitly provided).
Convert to RetryHandler options.
Validate a retry configuration, raising on invalid values.