mirascope.retries.fallback
Module fallback
The fallback
module provides a fallback retry strategy.
Class FallbackDecorator
Bases:
ProtocolClass Fallback
The override arguments to use for this fallback attempt.
Bases:
TypedDictAttributes
Class FallbackError
An error raised when all fallbacks fail.
Bases:
ExceptionFunction fallback
A decorator that retries the function call with a fallback strategy.
This must use the provider-agnostic llm.call
decorator.
Parameters
Returns
Type | Description |
---|---|
FallbackDecorator | The decorated function. |