All skills
secondsky avatar

/sap-cloud-sdk-ai-python

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

Integrates the SAP Cloud SDK for AI for Python (sap-ai-sdk-gen, formerly generative-ai-hub-sdk) into Python applications. Use when building Python apps with SAP AI Core, Generative AI Hub, or the Orchestration Service: chat completion, embeddings, streaming, LangChain integration, templating, content filtering, data masking, and document grounding. Supports OpenAI GPT models, Llama, Gemini, Amazon Nova, and other foundation models via SAP BTP.

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sap-cloud-sdk-ai-python

This session only. Nothing lands on disk.

README.md

≈576 tokens on demand. Your agent reads this file only when SKILL.md points to it.

SAP Cloud SDK for AI (Python)

Python SDK for SAP Generative AI Hub and Orchestration Service. Package sap-ai-sdk-gen (formerly generative-ai-hub-sdk, now deprecated). Provides native client integrations for OpenAI, Amazon Bedrock, Google GenAI, LangChain support, and full Orchestration Service access including content filtering, data masking, and document grounding. Package freshness is registry-verified; AI Core tenant execution and exact model availability still require target-tenant validation.

Capability Index

Capability Status
Commands 1: /cloud-sdk-ai-python-chat-template
Agents 0
Hooks No
MCP No
LSP No
Source Freshness last_verified: 2026-06-15; package registry evidence captured in docs/project/package-evidence/2026-06-15.json.
Verification npm run validate; AI Core tenant execution and exact model availability remain pending.

Quick Start

pip install "sap-ai-sdk-gen[all]"
export AICORE_CLIENT_ID="sb-..."
export AICORE_CLIENT_SECRET="..."
export AICORE_AUTH_URL="https://<tenant>.authentication.sap.hana.ondemand.com/oauth/token"
export AICORE_BASE_URL="https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com/v2"
export AICORE_RESOURCE_GROUP="default"
from gen_ai_hub.proxy.native.openai import chat

response = chat.completions.create(
    model_name="gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello, SAP!"}]
)
print(response.choices[0].message.content)

Installation Variants

Command Includes
pip install sap-ai-sdk-gen OpenAI only
pip install "sap-ai-sdk-gen[google, amazon]" OpenAI + Google + Amazon (no LangChain)
pip install "sap-ai-sdk-gen[all]" All providers + LangChain

Key Modules

  • gen_ai_hub.proxy.native — Direct model access (OpenAI, Amazon, Google, SAP RPT-1)
  • gen_ai_hub.proxy.langchain — LangChain integration (init_llm, ChatOpenAI, etc.)
  • gen_ai_hub.orchestration_v2 — Orchestration Service client
  • gen_ai_hub.document_grounding — Vector and Retrieval APIs
  • gen_ai_hub.prompt_registry — Prompt template management
  • gen_ai_hub.evaluations — Model evaluation framework

License

GPL-3.0

Source: SKILL.md on GitHub

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill is safe and follows standard practices for integrating the SAP Cloud SDK for AI. It contains a surface for indirect prompt injection, which is typical for LLM integration tools, but provides comprehensive documentation on mitigation features like content filtering and data masking.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-06-15",
  "sdk_package": "sap-ai-sdk-gen 6.10.0",
  "package_evidence": "docs/project/package-evidence/2026-06-15.json",
  "documentation_source": "https://help.sap.com/doc/generative-ai-hub-sdk/CLOUD/en-US/_reference/gen_ai_hub.html"
}

README badge

README badge for secondsky/sap-skills/sap-cloud-sdk-ai-python