Individual skill
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`.
skills/aicore-sdk-js/SKILL.md
Source commit 82b27a81d972aa4f70dc6154605606cfed0b4772
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 143
- Repository last updated
- Nov 5, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
README.mddoc · 997 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesSKILL.mdcore · 9,473 bytesassets/chat_openai_proxy.tsruns · 1,080 bytesassets/chat_sap_sdk.tsruns · 1,528 bytesassets/context_registry.tsruns · 6,646 bytesassets/document_grounding.tsruns · 2,455 bytesassets/langchain_openai.tsruns · 1,191 bytesassets/langchain_orchestration.tsruns · 1,310 bytesassets/llm_batch.tsruns · 2,802 bytesassets/openai_native.tsruns · 3,139 bytesassets/prompt_registry.tsruns · 1,418 bytesassets/realtime.tsruns · 1,594 bytesassets/rpt.tsruns · 1,634 bytesassets/streaming.tsruns · 1,310 bytesassets/tabular_orchestration.tsruns · 2,579 bytesevals/evals.jsonasset · 21,657 bytesevals/trigger_evals.jsonasset · 3,022 bytesreferences/SDK_JS.mddoc · 22,433 bytes
Read excerpt
## 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](https://sap.github.io/ai-sdk/docs/js/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.