Skip to content

Conversation

@ashivadi
Copy link

@ashivadi ashivadi commented Nov 27, 2025

Description

This PR provides access to SAP GenAI Hub model provider via strands. SAP GenAI Hub provides access to foundation models (Nova, Claude, Titan) via Bedrock through SAP's AI Core infrastructure.

SAP customers using SAP BTP with GenAI Hub currently use Strands Agents with their SAP-hosted models using DIY approach provided here https://github.com/aws-samples/sample-sap-genai-hub-bedrock/blob/main/util/strands_bedrock_sap_genai_hub.py.

Problem Statement

[FEATURE] Add SAP BTP GenAI Hub model provider support #1255

Documentation PR

strands-agents/docs#345

Type of Change

New feature

Testing

How have you tested the change? Verify that the changes do not break functionality or introduce warnings in consuming repositories: agents-docs, agents-tools, agents-cli

  • [✓] I ran hatch run prepare

Checklist

  • [ ✓] I have read the CONTRIBUTING document
  • [✓ ] I have added any necessary tests that prove my fix is effective or my feature works
  • [✓] I have updated the documentation accordingly
  • [✓ ] I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • [ ✓] My changes generate no new warnings
  • [ ✓] Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Add SAPGenAIHubModel class with support for Nova, Claude, and Titan models
- Implement streaming and non-streaming response handling
- Add tool calling and structured output support
- Include comprehensive unit tests (13 tests, 100% pass rate)
- Follow project style guide and conventions

The SAP GenAI Hub provider enables Strands Agents to work with models
hosted on SAP BTP GenAI Hub, providing access to foundation models
through SAP's AI Core infrastructure.

Users need: pip install 'generative-ai-hub-sdk[all]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant