Enable Agent Bedrock
Enables Embabel Agent integration with AWS Bedrock for enterprise-grade AI model access.
This annotation configures your Spring Boot application to use AWS Bedrock as AI model provider, enabling access to foundation models like Claude, Titan, and other AWS-hosted models through a unified interface.
What This Provides:
- Activates "bedrock" Spring profile
- Configures AWS Bedrock client with proper authentication (using AwsCredentialsProvider through org.springframework.ai:spring-ai-bedrock library)
- Sets up model routing to use Bedrock-hosted models
Example Usage:
public class BedrockAgentApplication {
public static void main(String[] args) {
SpringApplication.run(BedrockAgentApplication.class, args);
}
}
Content copied to clipboard
Required AWS Configuration:
Ensure AWS credentials are configured via one of these methods:
- AWS credentials file:
~/.aws/credentials
- Environment variables:
AWS_REGION
,AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- IAM role (when running on EC2/ECS/Lambda)
- AWS SSO configuration
Configuration Properties:
# application.yml
embabel:
models:
default-llm: eu.anthropic.claude-sonnet-4-20250514-v1:0
default-embedding-model: cohere.embed-multilingual-v3
Content copied to clipboard
If a more convenient model is needed, you may also override the provided application-bedrock.yml model list.
Since
1.0
Author
Embabel Team