- Enclosing class:
FallbackLLMClient
public static final class FallbackLLMClient.Builder
extends Object
Builder for FallbackLLMClient.
-
Method Summary
Builds the FallbackLLMClient.
Adds a fallback LLM client.
Whether to log fallback attempts (default: true).
Sets the primary LLM client.
Sets the number of retries on primary before fallback (default: 2).
-
Method Details
-
primary
Sets the primary LLM client.
-
fallback
Adds a fallback LLM client.
-
retryOnPrimary
Sets the number of retries on primary before fallback (default: 2).
-
logFallbacks
Whether to log fallback attempts (default: true).
-
build
Builds the FallbackLLMClient.