Llm4sBedrockModule
org.llm4s.llmconnect.provider.Llm4sBedrockModule
final class Llm4sBedrockModule extends Llm4sProviderModule
Registers llm4s-bedrock's one provider: AWS Bedrock, under the id bedrock. Bedrock supplies a chat client and no embedding provider here, so this module overrides only chatProviders.
Declared in this module's META-INF/services/org.llm4s.llmconnect.spi.Llm4sProviderModule, so adding the llm4s-bedrock dependency is all it takes for ProviderRegistry.default to resolve provider = "bedrock". Where discovery cannot run - a fat jar whose services files were overwritten rather than merged - register it explicitly:
given ProviderRegistry = ProviderRegistry.ofModules(new Llm4sBedrockModule)
A class rather than an object because java.util.ServiceLoader instantiates the class named in the services file through its public no-arg constructor.
Attributes
- Graph
-
- Supertypes
Members list
In this article