Aicore Sdk Js logo

Aicore Sdk Js

Organization
SAP
aicore-sdk-js

Generate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai (native OpenAI SDK), @sap-ai-sdk/langchain (LangChain), @sap-ai-sdk/document-grounding (RAG), @sap-ai-sdk/prompt-registry, @sap-ai-sdk/llm-batch (batch jobs), @sap-ai-sdk/rpt (tabular prediction), or @sap-ai-sdk/context-registry (data destinations, tabular artifacts, scenario configurations). WHEN: user asks for TypeScript, JavaScript, Node.js, or JS/TS code that calls a GenAI Hub model, wants a TypeScript starter project, asks how to use @sap-ai-sdk in their app, asks how to use LangChain (JS/TS) with SAP AI Core, or wants JS/TS for RAG/document-grounding, prompt templates, batch LLM jobs, tabular (RPT) prediction, or managing data destinations / tabular artifacts / scenario configurations via the Context Registry. DO NOT USE FOR: Java code — use `aicore-sdk-java`.

Overview

PublisherSAP
Repositoryai-skills-library
Skill nameaicore-sdk-js
Stars
123
Forks
28
Bundled files
16
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 16 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by SAP on GitHub. Read the source before you install it.

Installation

Install the Aicore Sdk Js AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/SAP/ai-skills-library/tree/main/skills/aicore-sdk-js
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SAP/ai-skills-library.git /tmp/ai-skills-library
mkdir -p .claude/skills
cp -r /tmp/ai-skills-library/skills/aicore-sdk-js .claude/skills/aicore-sdk-js
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Aicore Sdk Js in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Aicore Sdk Js on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Aicore Sdk Js is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Rules

  1. If no deployment URL is known, check the SAP AI Core console or contact your admin to list or create one before generating code.
  2. Always include aicore configure credential guidance in generated code comments; link to Connecting to AI Core for setup details.
  3. JS/TS lifecycle management (create/list/delete deployments) is not available in this skill — use the SAP AI Core console or contact your admin for deployment management.
  4. Target @sap-ai-sdk v2 (orchestration 2.14+). The preferred invocation pattern is passing messages directly to chatCompletion() / stream(). Only use promptTemplating.prompt.template with {{?placeholder}} values when the user explicitly wants a server-side reusable template. Never emit the v1 shape llm: { model_name } / templating: { template } — it does not compile against v2.
  5. Never emit Python code snippets — this skill is JS/TS only. If the user asks for Python, inform them that no Python skill is available in this repo and point them to https://sap.github.io/ai-sdk/ for Python SDK guidance.
  6. Gather these details before generating code — ask only for what the user hasn't provided:
    • Framework: @sap-ai-sdk/* (recommended) / @sap-ai-sdk/langchain (LangChain) / OpenAI npm package via LiteLLM proxy?
    • Use case: chat / streaming / embeddings?
    • Runtime: Node.js / Bun / browser?
    • Model + Deployment ID: check the SAP AI Core console for existing deployments
    • Model-switching intent (ask only when the user specifies an OpenAI model like gpt-4o, gpt-4.1, etc.): do they plan to switch models later (e.g. to Claude or Gemini)? If yes → recommend @sap-ai-sdk/orchestration for portability. If they want to stay on OpenAI → use @sap-ai-sdk/openai (SapOpenAi.createClient) as the simpler native OpenAI SDK alternative; no LiteLLM proxy needed.

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_JS.md and assets/*.ts are the compile-checked v2 floor. They are correct for the common paths (chat, streaming, LangChain, embeddings, proxy) and require no network or MCP. Use them by default.
  2. Context7 MCP (use if available). If the context7 query-docs tool is registered in this session, prefer it for the freshest API, version-specific details, or any feature the baked-in reference marks as fast-moving (tool calling, data masking, document grounding, prompt registry). Library ID: /websites/sap_github_io_ai-sdk_js. If the tool is not available, silently fall back to the baked-in reference — do not ask the user to install it.
  3. Web docs (last resort). For anything neither source covers, point to llms.txt or fetch the online docs.

Do not fabricate API shapes from memory — this SDK's v1 and v2 APIs differ, and guessing reproduces stale v1 code. When unsure, use source 2 if present, else source 3.


Asset Map

Use caseTemplateInstall
Chat via @sap-ai-sdk/orchestration (recommended)assets/chat_sap_sdk.tsnpm install @sap-ai-sdk/orchestration
Streaming via @sap-ai-sdk/orchestrationassets/streaming.tsnpm install @sap-ai-sdk/orchestration
Native OpenAI SDK (chat/stream/embeds/Responses)assets/openai_native.tsnpm install @sap-ai-sdk/openai openai zod
LangChain via AzureOpenAiChatClientassets/langchain_openai.tsnpm install @sap-ai-sdk/langchain @langchain/core
LangChain via OrchestrationClientassets/langchain_orchestration.tsnpm install @sap-ai-sdk/langchain @langchain/core
RAG / document groundingassets/document_grounding.tsnpm install @sap-ai-sdk/document-grounding
Managed prompt templatesassets/prompt_registry.tsnpm install @sap-ai-sdk/prompt-registry
Batch LLM jobsassets/llm_batch.tsnpm install @sap-ai-sdk/llm-batch @sap-ai-sdk/ai-api @sap-ai-sdk/foundation-models
Tabular prediction (SAP-RPT-1, not chat)assets/rpt.tsnpm install @sap-ai-sdk/rpt
Context Registry (data destinations, tabular artifacts, scenario configs)assets/context_registry.tsnpm install @sap-ai-sdk/context-registry
Tabular Orchestration (RPT predict via Scenario Config or inline context)assets/tabular_orchestration.tsnpm install @sap-ai-sdk/tabular-orchestration
Real-time speech/text via WebSocket (gpt-realtime)assets/realtime.tsnpm install @sap-ai-sdk/openai openai ws
Chat via OpenAI npm package (LiteLLM proxy)assets/chat_openai_proxy.tsnpm install openai

Install Options

bash
# @sap-ai-sdk (recommended — native SAP SDK)
npm install @sap-ai-sdk/orchestration @sap-ai-sdk/foundation-models

# Native OpenAI SDK surface on AI Core (no LiteLLM proxy needed)
npm install @sap-ai-sdk/openai openai zod

# LangChain integration (no LiteLLM proxy needed)
npm install @sap-ai-sdk/langchain @langchain/core

# RAG, prompt templates, batch jobs, tabular prediction
npm install @sap-ai-sdk/document-grounding
npm install @sap-ai-sdk/prompt-registry
npm install @sap-ai-sdk/llm-batch @sap-ai-sdk/ai-api @sap-ai-sdk/foundation-models
npm install @sap-ai-sdk/rpt

# With bun
bun add @sap-ai-sdk/orchestration @sap-ai-sdk/foundation-models

# OpenAI npm package via LiteLLM proxy (only if you need a running proxy; prefer @sap-ai-sdk/openai)
npm install openai

Quick Start (@sap-ai-sdk/orchestration)

Pass messages directly — this is the default pattern. Only use promptTemplating.prompt.template with {{?placeholder}} values when the user explicitly wants a reusable server-side template.

typescript
import { OrchestrationClient } from "@sap-ai-sdk/orchestration";

const client = new OrchestrationClient({
  promptTemplating: {
    model: {
      name: "anthropic--claude-4.5-haiku",
      params: { temperature: 0.7 },
    },
  },
});

const response = await client.chatCompletion({
  messages: [
    { role: "system", content: "You are a helpful assistant." },
    { role: "user", content: "Hello!" },
  ],
});
console.log(response.getContent());

Run with: npx tsx index.ts or bun run index.ts


Handoffs

  • Want Java code instead? → invoke aicore-sdk-java

When to Load Reference Files

TriggerLoad
@sap-ai-sdk/* API, OrchestrationClient, streamingreferences/SDK_JS.md
LangChain, AzureOpenAiChatClient, @sap-ai-sdk/langchainreferences/SDK_JS.md
Native OpenAI SDK, SapOpenAi, Responses APIreferences/SDK_JS.md
RAG, document grounding, prompt registry, batch, RPTreferences/SDK_JS.md
Tool calling, data masking, grounding config internalsContext7 (if available), else references/SDK_JS.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Aicore Sdk Js AI skill do?

Generate working TypeScript/JavaScript boilerplate for SAP GenAI Hub using @sap-ai-sdk/orchestration, @sap-ai-sdk/foundation-models, @sap-ai-sdk/openai (native OpenAI SDK), @sap-ai-sdk/langchain (LangChain), @sap-ai-sdk/document-grounding (RAG), @sap-ai-sdk/prompt-registry, @sap-ai-sdk/llm-batch (batch jobs), @sap-ai-sdk/rpt (tabular prediction), or @sap-ai-sdk/context-registry (data destinations, tabular artifacts, scenario configurations). WHEN: user asks for TypeScript, JavaScript, Node.js, or JS/TS code that calls a GenAI Hub model, wants a TypeScript starter project, asks how to use @s...

Why use Aicore Sdk Js on TypingMind?

Because you install it once and use it with any model. Aicore Sdk Js is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Aicore Sdk Js in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/SAP/ai-skills-library/tree/main/skills/aicore-sdk-js. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Aicore Sdk Js?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Aicore Sdk Js?

As many as you like. As long as a model supports skills, you can use Aicore Sdk Js with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Aicore Sdk Js AI skill free?

Yes. It is published on GitHub by SAP under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇