Skip to content

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

@ashivadi

Description

@ashivadi

Problem Statement

Feature Request: SAP BTP GenAI Hub Model Provider

Problem Statement

SAP customers using SAP BTP with GenAI Hub currently use Strands Agents with their SAP-hosted models using DIY approach provided here. SAP GenAI Hub provides access to foundation models (Nova, Claude, Titan) via Bedrock through SAP's AI Core infrastructure.

Proposed Solution

Add a new official model provider SAPGenAIHubModel that integrates with SAP BTP GenAI Hub.

pip install strands-agents 'sap-ai-sdk-gen[all]' strands-agents-tools
from strands import Agent
from strands.models.sap_genai_hub import SAPGenAIHubModel
from strands_tools import calculator

# Initialize SAP GenAI Hub model (requires ~/.aicore/config.json with credentials)
model = SAPGenAIHubModel(
    model_id="amazon--nova-lite",  # or see available models below
    temperature=0.7,
    max_tokens=1000,
    top_p=0.9
)

agent = Agent(model=model, tools=[calculator])
response = agent("What is 2+2?")
print(response.message)

Benefits

  • Enables SAP customers to use Strands Agents with their SAP BTP infrastructure
  • Extends Strands' reach to SAP ecosystem
  • Follows existing patterns from Bedrock model provider

Proposed Solution

#1263

Use Case

Allow users to build with strands agents sdk while consuming tokens from Bedrock via SAP GenAI hub as shown in examples here: https://github.com/aws-samples/sample-sap-genai-hub-bedrock/blob/main/04-strands-agent-with-sap-genai-hub.ipynb

Alternatives Solutions

Users can clone the custom class repo and manually import in their projects, but this approach will help it officially install via strands

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions