generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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-toolsfrom 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
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
Labels
enhancementNew feature or requestNew feature or request