EnableAgentBedrock

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);
    }
}

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 and AWS_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
See BedrockModels for other available Bedrock Models.

If a more convenient model is needed, you may also override the provided application-bedrock.yml model list.

Since

1.0

Author

Embabel Team

See also

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String