AI Core SDK Java
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`.
Verify and configure SAP AI Core credentials, retrieve auth tokens, and manage resource groups. Runs a setup health check, resolves authentication errors, and lists, creates, updates, or deletes resource groups. Use when checking whether AI Core is set up, configuring credentials, getting a Bearer token, or managing resource groups.
Manage the full SAP AI Core deployment lifecycle: scenarios, executables, configurations, and deployments. Lists and inspects scenarios and executables, creates configurations, creates, lists, stops, deletes, or patches deployments, fetches deployment logs, and removes duplicate LLM deployments. Use when managing AI Core deployments and their configurations.
List and explore foundation models available in the SAP AI Core Generative AI Hub: browse providers, model names, versions, capabilities, and executable IDs, and get curl inference examples for deployed models. Use when discovering available models, finding an executable-id or model-name for deployment, or generating inference examples such as chat completions, embeddings, or image generation.