BedrockLLMClient

constructor(awsAccessKeyId: String, awsSecretAccessKey: String, settings: BedrockClientSettings = BedrockClientSettings(), clock: Clock = Clock.System)(source)

Creates a new Bedrock LLM client configured with the specified AWS credentials and settings.

Return

A configured LLMClient instance for Bedrock

Parameters

awsAccessKeyId

The AWS access key ID for authentication

awsSecretAccessKey

The AWS secret access key for authentication

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