bedrock

fun KoogAgentsConfig.bedrock(apiKey: String, clock: Clock = Clock.System, moderationGuardrailsSettings: BedrockGuardrailsSettings? = null, configure: BedrockRuntimeClient.Config.Builder.() -> Unit = {})(source)

Configures and initializes a Bedrock LLM client with optional configuration.

Parameters

apiKey

The API key used for authenticating with the Bedrock API.

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

configure

A lambda receiver to customize the OpenAI configuration such as base URL, timeout settings, and paths.


fun KoogAgentsConfig.bedrock(clock: Clock = Clock.System, moderationGuardrailsSettings: BedrockGuardrailsSettings? = null, configure: BedrockRuntimeClient.Config.Builder.() -> Unit)(source)

Configures and initializes a Bedrock LLM client with AWS SDK builder

Parameters

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

configure

A lambda receiver to customize the OpenAI configuration such as base URL, timeout settings, and paths.