Skip to content

Conversation

@avichaym
Copy link

Linked issue: #523

Purpose of change

Add Amazon Bedrock as a chat model and embedding model provider for Flink Agents.

  • BedrockChatModelConnection — Converse API with native tool calling, SigV4 auth
  • BedrockChatModelSetup — model, temperature, max_tokens configuration
  • BedrockEmbeddingModelConnection — Titan Text Embeddings V2 with parallel batch embedding
  • BedrockEmbeddingModelSetup — model, dimensions configuration

New modules: integrations/chat-models/bedrock/, integrations/embedding-models/bedrock/

Tests

  • Unit tests: BedrockChatModelConnectionTest (4), BedrockChatModelSetupTest (3), BedrockEmbeddingModelTest (4)
  • End-to-end validated against real Bedrock with 6 demo applications (single-agent, ReAct tool calling, multi-agent pipeline, RAG, long-term memory, MCP)

API

No public API changes. New integration modules only.

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

Avichay Marciano added 3 commits February 10, 2026 08:02
…grations

Add two new integration modules for Amazon Bedrock:

- Chat model using the Converse API with native tool calling support,
  SigV4 auth via DefaultCredentialsProvider, and token metrics reporting.
  Supports all Bedrock models accessible via Converse API.

- Embedding model using Titan Text Embeddings V2 via InvokeModel.
  Batch embed(List<String>) parallelizes via configurable thread pool
  (embed_concurrency parameter, default 4).

Includes unit tests for constructors, parameter handling, and inheritance.
…avadocs

- Add close() to BedrockChatModelConnection and BedrockEmbeddingModelConnection
  to properly release AWS SDK clients and thread pools
- Wire max_tokens parameter through BedrockChatModelSetup into InferenceConfiguration
- Add retry jitter to BedrockEmbeddingModelConnection to prevent thundering herd
- Add typed getConnection() override to BedrockEmbeddingModelSetup
- Add usage example Javadocs to all 4 classes
- Document stripMarkdownFences necessity (Bedrock models don't guarantee pure JSON)
- Note future work: reasoning content, citations, multimodal support
- Expand wildcard imports
@github-actions github-actions bot added priority/major Default priority of the PR or issue. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. doc-not-needed Your PR changes do not impact docs labels Feb 10, 2026
@wenjin272 wenjin272 added doc-needed Your PR changes impact docs. and removed doc-not-needed Your PR changes do not impact docs labels Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-needed Your PR changes impact docs. fixVersion/0.3.0 The feature or bug should be implemented/fixed in the 0.3.0 version. priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants