New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Java SDK patterns for invoking Bedrock models, streaming responses, and creating RAG embeddings in Spring Boot.

skills.sh installs
3.9K
GitHub stars
372
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers Claude, Titan, and Llama payload construction, response parsing, and model discovery through BedrockClient and BedrockRuntimeClient
  • Includes streaming with error recovery and exponential backoff examples for throttling responses such as HTTP 429 and 5xx errors
  • Requires IAM roles instead of access keys and a simple validation prompt before production use
  • Designed for Java teams adding generative AI or embeddings for RAG to Spring Boot microservices

Install

$ npx -y skills add giuseppe-trisciuoglio/developer-kit --skill aws-sdk-java-v2-bedrock -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

AWS SDK for Java 2.x - Amazon Bedrock

Overview

Invokes foundation models through AWS SDK for Java 2.x. Configures clients, builds model-specific JSON payloads, handles streaming responses with error recovery, creates embeddings for RAG, integrates generative AI into Spring Boot applications, and implements exponential backoff for resilience.

When to Use

  • Invoke Claude, Llama, Titan, or Stable Diffusion for text/image generation
  • Configure BedrockClient and BedrockRuntimeClient instances
  • Build and parse model-specific payloads (Claude, Titan, Llama formats)
  • Stream real-time AI responses with async handlers and error recovery
  • Create embeddings for retrieval-augmented generation
  • Integrate generative AI into Spring Boot microservices
  • Handle throttling with exponential backoff retry logic

Quick Start

Dependencies

<!-- Bedrock (model management) -->
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>bedrock</artifactId>
</dependency>

<!-- Bedrock Runtime (model invocation) -->
<dependency>
    <groupId>software.amazon.awssdk</groupId>
    <artifactId>bedrockruntime</artifactId>
</dependency>

Details

Repository
github.com/giuseppe-trisciuoglio/developer-kit
Categories
Java & JVM, AI Agents & LLM Apps
First seen
May 16, 2026

More from giuseppe-trisciuoglio/developer-kit

All 95

Similar to Aws Sdk Java V2 Bedrock

More Java & JVM