aicore-sdk-python

aicore-sdk-python is a skill for Claude Code from SAP/ai-skills-library. It costs 279 tokens per session (1,901 once invoked), scanned A, original, Apache-2.0.

Python code guidance for SAP GenAI Hub, a service for connecting applications to generative AI models and related tools. It covers model calls, tool use, structured results, asynchronous work, embeddings, batch jobs, prompt registries, and document grounding, also called RAG.

In plain words
What is it for?
Use it when building Python applications with SAP GenAI Hub for chat, streaming, tool calling, embeddings, batch processing, prompt registries, or document-based answers.
Why use it?
It keeps generated examples on the supported Python SDK and helps avoid deprecated packages, missing deployment details, and code in an unsupported language.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the aicore-skills plugin — 9 skills shipped together

Good fit Use it when building Python applications with SAP GenAI Hub for chat, streaming, tool calling, embeddings, batch processing, prompt registries, or document-based answers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sap/ai-skills-library/aicore-sdk-python
About the project

SAP/ai-skills-library is a catalogue for discovering, filtering, and installing AI skills that support SAP digital assistants. SAP users and contributors can install listed skills with the skills CLI across compatible coding agents, while skill authors keep their implementations in their own public repositories and register them with the library. The catalogue contains five of the library's skills and its plugin.

SAP/ai-skills-library · 162 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SAP/ai-skills-library --skill aicore-sdk-python
Clone the repo
git clone --depth 1 https://github.com/SAP/ai-skills-library

Made for: Claude Code.

Or install aicore-skills, the plugin that ships this one along with the rest of its 9 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aicore-sdk-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-python/github.svg)](https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-python)
Your own site
<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-python"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-python/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aicore-sdk-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/sap/ai-skills-library/aicore-sdk-python"><img src="https://agentmods.dev/badge/skills/sap/ai-skills-library/aicore-sdk-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 279 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,901 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00279 $0.01901
Opus 5.5 $0.00112 $0.00760
Sonnet 5.5 $0.00056 $0.00380
Haiku 4.5 $0.00028 $0.00190

Measured yesterday against content hash febc58da47f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aicore-sdk-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 13 executable files (assets/async_chat.py, assets/batch_service.py, assets/chat_langchain.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/aicore-skills/skills/aicore-sdk-python/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rules

  1. Always use sap-ai-sdk-gen — never generative-ai-hub-sdk (deprecated). Import namespace gen_ai_hub is the same for both.
  2. If no deployment URL is known, invoke aicore-lifecycle-management to list or create one before generating code.
  3. Always include aicore configure credential guidance in generated code comments.
  4. Never emit TypeScript, JavaScript or Java code snippets — this skill is Python only. If the user asks for TypeScript, JavaScript, or Node.js code, invoke aicore-sdk-js immediately without producing any JS/TS code. If the user asks for Java code, invoke aicore-sdk-java immediately. Do not relay or present any output from that skill — simply hand off and stop.
  5. Gather these details before generating code via AskUserQuestion — ask only for what the user hasn't provided:
    • Language: Python (confirmed for this skill)
    • Use case: chat / streaming / tool calling / structured output / agentic framework / async / batch / prompt registry/ document grounding/ orchestration?
    • Model: which model? (suggest gpt-4o-mini as default)
    • Deployment ID: run aicore-lifecycle-management scripts to list existing ones, or offer to create

Sources & Fallback

Use the best source available, in this order. Never block on a source that isn't present.

  1. Baked-in reference (always available). references/SDK_PYTHON.md and assets/*.py are the verified floor. They are correct for all common paths and require no network. Use them by default.
  2. Web docs (fallback for gaps). For features not covered by the baked-in reference (e.g. new models, orchestration v2 internals), fetch the online docs:

Do not fabricate API shapes from memory — sap-ai-sdk-gen has changed across versions. When unsure, check the reference files before guessing.


Asset Map

Pick the template that matches the user's use case:

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 126 lines · 279 tokens per session scan A febc58da47f1

Subscribe to this mod's changes

aicore-sdk-python is a skill published in the GitHub repository SAP/ai-skills-library (162 stars, last pushed 2d ago), licensed Apache-2.0. It adds 279 tokens to every session and 1,901 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

aicore-sdk-python compared with skills from other repositories

aicore-sdk-python next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aicore-sdk-pythonSAP/ai-skills-librarySkill1622d agoApache-2.0A279Claude Code
developing-genkit-pythongoogle/skillsSkill26kyesterdayApache-2.0A96Claude Code, Codex
synthetic-data-finetuning-expertroedyrustam/vibes-plugSkill132todayMITA46Cursor
aws-sdk-java-v2-bedrockgiuseppe-trisciuoglio/developer-kitSkill3742mo agoMITA92Claude Code
leiloeiro-edital-ranbot-aiThomasMoreAI/legal-skills-openSkill1531mo agoApache-2.0A51Claude Code, Codex
langchain4j-ai-services-patternsgiuseppe-trisciuoglio/developer-kitSkill3742mo agoMITA85Claude Code
python-ai-mlJakubMikolajek/codex-skills-collectionSkill72d agoMITA81Claude Code, Codex