BedrockClientSettings
class BedrockClientSettings(val region: String = BedrockRegions.US_WEST_2.regionCode, val timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), val endpointUrl: String? = null, val apiMethod: BedrockAPIMethod = BedrockAPIMethod.InvokeModel, val maxRetries: Int = 3, val enableLogging: Boolean = false, val moderationGuardrailsSettings: BedrockGuardrailsSettings? = null, val fallbackModelFamily: BedrockModelFamilies? = null)(source)
Configuration settings for connecting to the AWS Bedrock API.
Constructors
Link copied to clipboard
constructor(region: String = BedrockRegions.US_WEST_2.regionCode, timeoutConfig: ConnectionTimeoutConfig = ConnectionTimeoutConfig(), endpointUrl: String? = null, apiMethod: BedrockAPIMethod = BedrockAPIMethod.InvokeModel, maxRetries: Int = 3, enableLogging: Boolean = false, moderationGuardrailsSettings: BedrockGuardrailsSettings? = null, fallbackModelFamily: BedrockModelFamilies? = null)
Properties
Link copied to clipboard
The API method to use for interacting with Bedrock models that support messages, defaults to BedrockAPIMethod.InvokeModel.
Link copied to clipboard
Whether to enable detailed AWS SDK logging.
Link copied to clipboard
Optional custom endpoint URL for testing or private deployments.
Link copied to clipboard
Optional fallback model family to use for unsupported models. If not provided, unsupported models will throw an exception.
Link copied to clipboard
Maximum number of retries for failed requests.
Link copied to clipboard
Optional settings of the AWS bedrock Guardrails (see AWS documentation ) that would be used for the LLMClient.moderate request
Link copied to clipboard
Configuration for connection timeouts.