BedrockLLMClient
constructor(identityProvider: IdentityProvider, settings: BedrockClientSettings = BedrockClientSettings(), clock: Clock = Clock.System)(source)
Creates a new Bedrock LLM client configured with the specified identity provider and settings.
Return
A configured LLMClient instance for Bedrock
Parameters
identityProvider
Supplies authentication to AWS Bedrock, supporting both CredentialsProvider for AWS credentials and BearerTokenProvider for API key-based access.
settings
Configuration settings for the Bedrock client, such as region and endpoint
clock
A clock used for time-based operations
constructor(bedrockClient: BedrockRuntimeClient, moderationGuardrailsSettings: BedrockGuardrailsSettings? = null, clock: Clock = Clock.System)(source)
Parameters
bedrockClient
The runtime client for interacting with Bedrock, highly configurable
clock
A clock used for time-based operations
moderationGuardrailsSettings
Optional settings of the AWS bedrock Guardrails (see AWS documentation ) that would be used for the LLMClient.moderate request