Building a Pro-Code Agent on SAP BTP — Part 2: The Agent (LangGraph + GenAI Hub)
Part 2 of a three-part series builds a separate, non-CAP Node/TypeScript agent that calls the Part 1 CAP service's MCP tools and reasons through SAP AI CoreSAP AI CoreSAP's AI service on BTP: the runtime for AI assets, and through the Generative AI Hub inside it the access to foundation models, the orchestration service with its templating, masking, filtering and grounding modules, the Prompt Registry and Document Grounding.sap official, btp via @sap-ai-sdk/orchestration@sap-ai-sdk/orchestrationThe Orchestration Service client of SAP's AI SDK, which applies templating, grounding, filtering and masking around a model call rather than in the application.sap official, cap, using LangGraph's createAgent ReAct loop for provider-agnostic model calls across GPT, Claude and Gemini deployments. It explains why the tool's Zod schema and model-facing description are the agent's actual contract, the gotcha between a foundation-models deployment and an orchestration-scenario one, and how edge-case testing replaced date inference with a server-computed daysOverdue field after the agent wrongly called a delayed order 'on schedule'.
Where it sits
Who is behind it
In this series
- 1
- 2Building a Pro-Code Agent on SAP BTP — Part 2: The Agent (LangGraph + GenAI Hub)you are here
- 3
Properties
About this work
Details
Graph
Source
History
- Entered the atlasDiscovered via SAP Community · agentic-ai-tag, SAP Community · joule-tag.
For your agent
- Ref
content:building-a-pro-code-agent-on-sap-btp-part-2-the-agent-langgraph-genai-hub- JSON
- /content/building-a-pro-code-agent-on-sap-btp-part-2-the-agent-langgraph-genai-hub.json
- MCP
- Connecting an agent