Overview
A Spring Boot starter that enables existing Spring Boot applications to conform to the AWS Bedrock AgentCore Runtime contract with minimal configuration. Simply add the dependency and annotate your agent methods.Version: 1.0.0-RC1
Key Features
Auto-configuration
Automatically sets up AgentCore endpoints when added as dependency
Annotation-based
Simple
@AgentCoreInvocation annotation to mark agent methodsSSE Streaming
Server-Sent Events support with
Flux<String> return typesHealth Checks
Built-in
/ping endpoint with Spring Boot Actuator integrationAsync Task Tracking
Convenient methods for background task tracking
Rate Limiting
Built-in Bucket4j throttling for invocations and ping endpoints
Quick Start
1. Add Dependency
2. Create Agent Method
3. Run Application
The application will automatically expose:POST /invocations- Agent processing endpointGET /ping- Health check endpoint
Supported Method Signatures
Basic POJO Method
With AgentCore Context
SSE Streaming with Spring AI
Background Task Tracking
AWS Bedrock AgentCore Runtime monitors agent health and may shut down agents that appear idle. UseAgentCoreTaskTracker to communicate active work:
/ping endpoint returns HealthyBusy while tasks are active, preventing premature shutdown.
Configuration
Examples
See theexamples/ directory in the repository:
simple-spring-boot-app/- Minimal AgentCore agent with async task trackingspring-ai-sse-chat-client/- SSE streaming with Spring AI and Amazon Bedrockspring-ai-simple-chat-client/- Traditional Spring AI integrationspring-ai-override-invocations/- Custom controller override using marker interfaces
Requirements
- Java 17+
- Spring Boot 3.x