org.llm4s.reliability.ReliabilityConfig
See theReliabilityConfig companion object
@Stable
Configuration for reliable LLM provider calls.
Provides retry logic, circuit breakers, and deadline enforcement to make LLM API calls resilient to transient failures.
Construction does not check the values, so that a configuration can be built up with setters; validate does, and a ReliableClient given a configuration that fails it returns that error from every call.
Value parameters
- circuitBreaker
-
Circuit breaker configuration
- deadline
-
Time allowed for all the attempts of one call together, waits included; checked between attempts, so it stops further retries but does not interrupt an attempt in flight
- enabled
-
Whether reliability features are enabled (for opt-out)
- rateLimit
-
Local rate limiting configuration
- retryPolicy
-
Retry policy for transient failures
Attributes
- Companion
- object
- Source
- ReliabilityConfig.scala
- Graph
-
- Supertypes
Members list
In this article
