LLM integration

In CAP Java the answer is a Maven dependency rather than a cds-plugin: cap-java/cds-ai carries the bridge to SAP AI Core and the Fiori field recommendations, and an agent reaches a chat model through the cds-adapter-agent dependency, with LangChain4j's Ollama integration added to srv/pom.xml for a local one. The cds-plugins behind this door do not load here, so an artifact that registers a provider kind under cds.requires.llm answers on the Node.js flavor only.

Showing artifacts, examples and content with confirmed Java applicability. View All CAP

Overview

SAP SHIPS

cap-java/cds-ai is the bridge: com.sap.cds:cds-feature-ai-core covers resource group management, deployment lifecycle, configuration CRUD and the prediction API against SAP AI Core, and com.sap.cds:cds-feature-recommendations calls SAP RPT-1 over the same connection for Fiori field recommendations. capire's plugin list says the Java version of the AI plugin is in alpha. An agent reaches a chat model through the cds-adapter-agent dependency, where kind is aicore, ollama or mocked.

Not covered: At the binding, as on Node.js: without an SAP AI Core binding the plugins fall back to mock implementations for local development, and the mocked chat model kind returns static responses without calling any model. The page that configures the chat model marks that configuration alpha, and reaching a model served by Ollama means adding LangChain4j's Ollama integration to srv/pom.xml separately.

Sourcecap-java/cds-ai — READMEchecked
THE COMMUNITY ADDS

No community artifact is documented here.

Licence1

LicenceSAP Developer License Agreement 3.2 CAP§ 3AlwaysCovered SAP materials or a covered CAP customer application are used as training data or to develop or refine an AI model or system.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.

Calling a model for inference is not automatically AI training. Section 3 matters when the covered material or application participates in training, model development, refinement or the text-and-data-mining uses it names.

SAP Developer License Agreement 3.2 CAP →

Artifacts2

2 of 2 artifacts
ArtifactSignals
Packages1
cap-java/cds-aiBridge from CAP Java to SAP AI Core, with Fiori field recommendations
Signals
none
Services1
SAP AI CoreAI runtime on BTP with the Generative AI Hub
Signals
none

Details

Coverage
statecore only, CAP, Java
assessed
also inUI5, BTP/BAIP, ABAP
Comparison properties2

These are the questions used to compare what the artifacts do. Values come from their documentation and may apply to a particular ecosystem or runtime. Each recorded value in the comparison opens its statement and sources.

Models it reachesStreams the response
For your agent
Ref
capability:llm-integration
JSON
/capabilities/llm-integration.json
MCP
Connecting an agent