Skip to main content

Module resilience

Module resilience 

Source
Expand description

LLM resilience wrapper with circuit breaking and budget instrumentation.

Structsยง

BudgetTracker ๐Ÿ”’
CircuitBreaker ๐Ÿ”’
LlmResilienceConfig
Resilience configuration for LLM calls.
ResilientLlmProvider
LLM provider wrapper with circuit breaker and budget instrumentation.

Enumsยง

BreakerState ๐Ÿ”’
Circuit breaker state machine.
FailureAction ๐Ÿ”’

Functionsยง

is_retryable_error ๐Ÿ”’
Checks if an error is retryable (transient failures that may succeed on retry).
is_timeout_error ๐Ÿ”’
Checks if an error is a timeout error.