This repository contains a collection of AI plugins for CAP Java applications, leveraging SAP AI Core and the SAP-RPT-1 foundation model.
| Module | Description |
|---|---|
cds-feature-ai-core |
Bridges CAP Java to SAP AI Core - resource group management, deployment lifecycle, configuration CRUD, and prediction API |
cds-feature-recommendations |
AI-powered field recommendations for Fiori UIs in draft-enabled entities |
For the simplest setup, add the cds-starter-ai dependency which bundles both plugins:
<dependency>
<groupId>com.sap.cds</groupId>
<artifactId>cds-starter-ai</artifactId>
<version>${cds-ai.version}</version>
</dependency>"dependencies": {
"@cap-js/ai": "^1"
}- Java 17+
- CAP Java 4.9+
- Node.js 20+ with
@sap/cds-dk9+ (for CDS build tooling) - An SAP AI Core service binding (for production use)
Without an AI Core binding the plugins fall back to mock implementations for local development.
In samples/bookshop you can find a complete CAP Java bookshop demonstrating both plugins:
mvn clean install
cd samples/bookshop
mvn spring-boot:runmvn clean install # build all modules
mvn test # run unit testsFor integration tests against a real AI Core instance:
cds bind ai-core -2 <your-ai-core-service-instance>
cds bind --exec mvn test -pl integration-tests/spring -amThis project is open to feature requests/suggestions, bug reports etc. via GitHub issues. Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our Contribution Guidelines.
If you find any bug that may be a security problem, please follow our instructions at in our security policy on how to report it. Please do not create GitHub issues for security-related doubts or problems.
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its Code of Conduct at all times.
Copyright 2026 SAP SE or an SAP affiliate company and cds-ai contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.