simpleBedrockExecutorWithBearerToken

fun simpleBedrockExecutorWithBearerToken(bedrockApiKey: String, settings: BedrockClientSettings = BedrockClientSettings()): SingleLLMPromptExecutor(source)

Creates an instance of SingleLLMPromptExecutor with a BedrockLLMClient. Uses the provided Bedrock API key to create a aws.smithy.kotlin.runtime.http.auth.BearerTokenProvider.

See AWS documentation for more information about Bedrock API keys.

Parameters

bedrockApiKey

Your Bedrock API key (bearer token).

settings

Custom client settings for region and timeouts.