Configuration for the AWS Bedrock Converse API.
Authentication, in order of precedence: explicit credentials; the shared-config profile; otherwise the AWS default credential chain (environment variables, ~/.aws/credentials, EC2 instance profile, ECS task role, ...).
Build one with BedrockConfig.fromValues, which validates it and resolves contextWindow and reserveCompletion from the model registry.
Value parameters
- contextWindow
-
Total token capacity of the model (prompt plus completion).
- credentials
-
Explicit credentials; the default chain is used when absent.
- endpointUrl
-
Endpoint override, e.g. a VPC endpoint or a test server.
- model
-
Bedrock model id or inference-profile id, e.g.
"anthropic.claude-3-5-sonnet-20241022-v2:0"or"us.anthropic.claude-3-5-sonnet-20241022-v2:0". - profile
-
AWS shared-config profile name.
- region
-
AWS region that hosts the model, e.g.
"us-east-1". - reserveCompletion
-
Tokens held back from prompt history for the completion.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProviderConfigclass Objecttrait Matchableclass Any