aws-sdk-java-v2-bedrock

Installation
Summary

Amazon Bedrock integration for Java 2.x with support for text generation, embeddings, image generation, and streaming responses.

  • Covers multiple foundation models (Claude, Llama, Titan, Mistral, Cohere, DeepSeek) with unified API patterns for invoking, listing, and managing models
  • Includes streaming response handlers for real-time generation, text embeddings for RAG applications, and image generation with Stable Diffusion
  • Provides Spring Boot configuration patterns with dependency injection, service beans, and property-based model selection
  • Handles model-specific payload formats and response parsing for each provider, with best practices for cost optimization, security, and error handling
SKILL.md

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

Related skills

More from giuseppe-trisciuoglio/developer-kit

Installs
850
GitHub Stars
246
First Seen
Feb 3, 2026