aicore-sdk-java
БесплатноБез исполняемых скриптовНе проверен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…
от SAP★ 162 звезды на GitHubОб этом скилле
Sources & Fallback
Resolve answers in this priority order:
- Assets (
assets/directory) — check for a matching template first and serve it directly. Assets are always available offline and contain runnable, tested code. - Context7 MCP — if no asset matches, fetch live docs via Context7:
resolve-library-id: SAP/ai-sdk-java, thenget-library-docs. Context7 returns the most up-to-date API shapes straight from the repo. Silently fall back to step 3 if Context7 is not installed. references/SDK_JAVA.md— offline reference when Context7 is unavailable. Use this rather than guessing.
Do not fabricate class names, method signatures, or config shapes. If none of the three sources cover the question, say so and point the user to https://sap.github.io/ai-sdk/docs/java/ directly.
Rules
- If no deployment exists, check the SAP AI Core console or contact your admin to list or create one before generating code.
- Always include credential guidance in generated code comments; link to Connecting to AI Core for setup details.
- Use
OrchestrationAiModelconstants (e.g.OrchestrationAiModel.GPT_4O_MINI) — never raw model name strings. - Always use
OrchestrationClientas the primary client for chat, streaming, embeddings, grounding, and filtering.OpenAiClient(openaiartifact) is only for direct OpenAI proxy use cases — do not recommend it for general chat. - Streaming has two distinct APIs — use each correctly:
OrchestrationClient.streamChatCompletion()in a Spring Boot controller: always useResponseBodyEmitter+ThreadContextExecutors.getExecutor().execute()to forward deltas. Never useSseEmitter,Thread.ofVirtual(), or expose a rawFluxfrom the controller.- Spring AI
ChatModel.stream()(OrchestrationChatModel/OpenAiChatModel): this method is part of the Spring AIChatModelinterface and legitimately returnsFlux<ChatResponse>. Composing theFluxdirectly (e.g..doOnNext(…).blockLast()) is correct — do not replace it withResponseBodyEmitter.
- Gather these details before generating code — ask only for what the user hasn't provided:
- Use case: chat / streaming / multi-turn / embeddings / grounding / filtering?
- Model: check the SAP AI Core console or the SAP GenAI Hub documentation for available models
- Build tool: Maven or Gradle?
- Framework: plain Java / Spring Boot?
- For SDK bugs or unexpected runtime behavior: acknowledge the issue, share only verified workarounds from the assets or reference docs, and direct the user to https://github.com/SAP/ai-sdk-java/issues. Do not speculate about SDK internals or diagnose bugs not covered by a source above.
Asset Map
| Use case | Template | Dependency |
|---|---|---|
Chat via OrchestrationClient |
assets/ChatOrchestration.java |
com.sap.ai.sdk:orchestration |
Streaming via OrchestrationClient |
assets/StreamingOrchestration.java |
com.sap.ai.sdk:orchestration |
| Multi-turn conversation | assets/MultiTurnOrchestration.java |
com.sap.ai.sdk:orchestration |
| Text embeddings | assets/EmbeddingsOrchestration.java |
com.sap.ai.sdk:orchestration |
| RAG / vector store grounding | assets/GroundingOrchestration.java |
com.sap.ai.sdk:orchestration |
| Prompt Registry templates | assets/PromptRegistryOrchestration.java |
com.sap.ai.sdk:orchestration |
| Spring AI + Orchestration | assets/SpringAiOrchestration.java |
com.sap.ai.sdk:orchestration |
| Spring AI + OpenAI client | assets/SpringAiOpenAi.java |
com.sap.ai.sdk:openai |
| LLM batch processing | assets/BatchOrchestration.java |
com.sap.ai.sdk:batch + openai + core |
| Native OpenAI Responses API | assets/OpenAiNative.java |
com.sap.ai.sdk:openai |
| RPT table completion (SAP RPT model) | assets/RptOrchestration.java |
com.sap.ai.sdk:sap-rpt |
| Content filtering (Azure + LlamaGuard) | assets/FilteringOrchestration.java |
com.sap.ai.sdk:orchestration |
| Data masking (DPI anonymization) | assets/MaskingOrchestration.java |
com.sap.ai.sdk:orchestration |
Install Options
<!-- Maven — orchestration only (default resource group) -->
<dependency>
<groupId>com.sap.ai.sdk</groupId>
<artifac
Установить aicore-sdk-java в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл aicore-sdk-java?
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`.
Как установить скилл aicore-sdk-java?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл aicore-sdk-java запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic