AI Core SDK JS
Generate working Java boilerplate for SAP GenAI Hub using the SAP AI SDK for Java (com.sap.ai.sdk). Covers chat completion, streaming, multi-turn conversations, prompt templates, content filtering, data masking, embeddings, RAG/grounding, prompt registry, and Spring Boot streaming. WHEN: user asks for Java or Kotlin code that calls a GenAI Hub model, wants a Java starter project, asks how to use com.sap.ai.sdk in their app, or asks how to integrate AI Core into a Spring Boot or plain Java application. DO NOT USE FOR: JavaScript/TypeScript code — use `aicore-sdk-js`.
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.