Package-level declarations

Types

Link copied to clipboard

Default implementation that extracts common retry-after patterns.

Link copied to clipboard
sealed class RetryablePattern

Pattern for identifying retryable errors.

Link copied to clipboard
fun interface RetryAfterExtractor

Extracts retry-after hints from error messages.

Link copied to clipboard
data class RetryConfig(val maxAttempts: Int = 3, val initialDelay: Duration = 1.seconds, val maxDelay: Duration = 30.seconds, val backoffMultiplier: Double = 2.0, val jitterFactor: Double = 0.1, val retryablePatterns: List<RetryablePattern> = DEFAULT_PATTERNS, val retryAfterExtractor: RetryAfterExtractor? = DefaultRetryAfterExtractor)

Configuration for retry behavior in LLM client operations.

Link copied to clipboard
class RetryingLLMClient(delegate: LLMClient, config: RetryConfig = RetryConfig()) : LLMClient

A decorator that adds retry capabilities to any LLMClient implementation.