Native AI
CAP provides intrinsic support for integrating native AI capabilities, including the use of MCP services, CAP-level Agents, and Vector Embeddings.
CAP-native Embeddings
Learn how to leverage vector embeddings, as supported by SAP HANA, to enable advanced AI-driven search and recommendations.
cds
entity Incidents { //...
embedding : Vector = vector_embedding(
'Title: ' || title || ', Summary: ' || summary,
'DOCUMENT', 'SAP_GXY.20250407'
) stored;
}CAP-level MCP Services
Easily serve your CAP services via Model Context Protocol (MCP).
cds
@mcp service CatalogService {
entity Books { ... } //> served via `query` tool
entity Authors { ... } //> served via `query` tool
action submitOrder (...) //> served via `call` tool
}CAP-level Agents
Easily turn your CAP services into agents, served via Agent-to-Agent Protocol (A2A).
cds
@agent service TravelAgentService {
@readonly entity Travelers { ... }
@agent.hitl action createItinerary (...) //> human-in-the-loop action
}The XTravels Sample
Explore a comprehensive example of integrating CAP-level agents, MCP services, and vector embeddings within a travel planning application.
Integration with Joule
Learn how to integrate CAP applications with SAP Joule Work and SAP Joule Studio to enhance AI-driven capabilities and workflows.