
Aicore SDK python
Generates Python code for calling LLMs, batch jobs and RAG through SAP AI Core
Aicore SDK python is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- Python
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 162
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Aicore SDK python
This skill helps an AI coding agent write Python starter code for SAP GenAI Hub using the sap-ai-sdk-gen package. It covers native clients for OpenAI, Google Gemini and Amazon Bedrock, LangChain wiring, and higher-level services such as batch LLM jobs, prompt templates, document grounding and tabular prediction with SAP RPT models.
The skill routes requests to bundled reference material and per-feature code templates before generating anything, so the agent works from a verified API floor rather than memory. It asks for missing details such as the target use case, model and deployment ID, and points the agent to companion skills for deployment management, credential setup, or JavaScript and Java output.
Users need Python 3.11 or newer, uv, and an SAP AI Core service key configured through the aicore CLI or AICORE_* environment variables.
When your agent uses it
Generate working Python boilerplate for SAP GenAI Hub using sap-ai-sdk-gen: native OpenAI proxy, Google GenAI, Amazon Bedrock, LangChain (init_llm/ ChatOpenAI / ChatBedrock / ChatGoogleGenerativeAI), tool calling, structured output, async, multi-turn, embeddings, batch jobs, prompt registry, document grounding / RAG, tabular prediction (SAP RPT classification & regression). WHEN: user asks for Python code, a Python starter project, how to use GenAI Hub in Python, how to connect LangChain to AI Core, how to use OpenAI (GPT), Google Gemini, or Amazon Bedrock models via SAP AI Core, how to run batch LLM jobs on SAP AI Core (BatchService), how to manage prompt templates or orchestration configs on SAP AI Core (Prompt Registry / OrchestrationService), how to generate embeddings or do RAG / document grounding through SAP AI Core, how to use the Responses API via the GenAI Hub proxy, how to do tabular prediction with SAP RPT models on SAP AI Core (classification & regression) via RPTClient. DO NOT USE FOR: TypeScrip
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: Apache-2.0(see the files on GitHub)
From a static check of its 18 files (67 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the aicore-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add SAP/ai-skills-library
/plugin install aicore-skills@ai-skills-libraryOr copy only this skill to ~/.claude/skills/aicore-sdk-python:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.claude/skills/aicore-sdk-python &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/aicore-sdk-python inside it instead.
Copy the skill folder to ~/.agents/skills/aicore-sdk-python to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.agents/skills/aicore-sdk-python &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/aicore-sdk-python inside it instead.
Copy the skill folder to ~/.cursor/skills/aicore-sdk-python to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.cursor/skills/aicore-sdk-python &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/aicore-sdk-python inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/SAP/ai-skills-library.git --path plugins/aicore-skills/skills/aicore-sdk-pythonOr copy the folder to ~/.gemini/skills/aicore-sdk-python yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/aicore-sdk-python:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SAP/ai-skills-library.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/aicore-sdk-python &&
cp -R "$tmp/plugins/aicore-skills/skills/aicore-sdk-python" ~/.copilot/skills/aicore-sdk-python &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/aicore-sdk-python inside it instead.
Get the folder:
git clone --depth 1 https://github.com/SAP/ai-skills-library.gitThen copy ai-skills-library/plugins/aicore-skills/skills/aicore-sdk-python into your agent's skills folder as aicore-sdk-python. Agents that support SKILL.md read one folder per skill.
What it does
- Native model clients
- Chat, streaming, tool calling and async calls through the OpenAI, Google GenAI and Bedrock proxies.
- LangChain integration
- Connects LangChain chat and embedding models to AI Core deployments.
- Structured output
- Produces Pydantic-typed responses and Responses API examples.
- Batch LLM jobs
- Runs large sets of model requests through the BatchService.
- Prompt registry templates
- Creates and manages managed prompt templates and orchestration configs.
- Document grounding and RAG
- Adds retrieval-augmented generation over documents hosted via AI Core.
- Tabular prediction
- Runs classification and regression on relational data with SAP RPT models.
Good for
- Write a Python script that sends a chat request to a GPT model on SAP AI Core
- Build a LangChain agent that uses an AI Core deployed model
- Set up a batch job that processes many prompts through BatchService
- Add document grounding to answer questions from company files
- Run a classification model on a table of records with RPTClient
Aicore SDK python FAQ
What does the skill need before Aicore SDK python generates code?
It asks for the language, use case, model and deployment ID when the user has not supplied them, and it recommends an existing deployment from the lifecycle skill if one is needed.
Which SDK package does Aicore SDK python use?
It uses sap-ai-sdk-gen with the gen_ai_hub import namespace and avoids the deprecated generative-ai-hub-sdk package.
Does Aicore SDK python generate JavaScript or Java code?
No. It is limited to Python and hands off TypeScript, JavaScript or Java requests to other skills.
How do I install Aicore SDK python in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/aicore-sdk-python to use it in all your projects, or to .claude/skills/aicore-sdk-python in one project. Or install the aicore-skills plugin, which includes it: /plugin marketplace add SAP/ai-skills-library, then /plugin install aicore-skills@ai-skills-library.
Does Aicore SDK python run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Aicore SDK python?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
What are the best alternatives to Aicore SDK python?
The closest alternatives to Aicore SDK python are Aicore SDK js, Aicore SDK java, Genai hub tabular orchestration, Sap cloud integration and Developing genkit go.
Where this comes from
- Description: from the skill's own SKILL.md.
More from SAP/ai-skills-library

Checks SAP AI Core credentials, fetches auth tokens and manages resource groups
- Open source
- 162 GitHub stars
- Cloud and infrastructure

Lets your agent manage SAP AI Core scenarios, configurations and deployments via scripts
- Open source
- 162 GitHub stars
- Cloud and infrastructure

Generates Java code for calling SAP GenAI Hub models via the SAP AI SDK
- Open source
- 162 GitHub stars
- Developer tools

Generates TypeScript and JavaScript code for calling SAP GenAI Hub models
- Open source
- 162 GitHub stars
- Developer tools

Browse SAP AI Core GenAI Hub foundation models and get IDs for deployments
- Open source
- 162 GitHub stars
- AI models and LLM tooling

Lets an agent build SAP AI Core orchestration pipelines with templates, filtering and RAG
- Open source
- 162 GitHub stars
- AI models and LLM tooling


