- All Known Implementing Classes:
DefaultLlmClientResolver,RetryingLlmClientResolver
public interface LlmClientResolver
Resolves a provider id string to the configured
LlmClient.
DefaultLlmClientResolver discovers factories via JPMS ServiceLoader and
builds clients from LlmClientConfiguration entries.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisProviderAvailable(String provider) Returns the client for the given provider id (matched case-insensitively by typical implementations).
-
Method Details
-
resolve
Returns the client for the given provider id (matched case-insensitively by typical implementations).- Parameters:
provider- provider id such as"openai"or"ollama"- Returns:
- client for that provider
- Throws:
IllegalArgumentException- if the provider is blank or not registered
-
isProviderAvailable
-
listAvailableClients
-