{"ref":"content:building-a-pro-code-agent-on-sap-btp-part-2-the-agent-langgraph-genai-hub","page":"/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","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"building-a-pro-code-agent-on-sap-btp-part-2-the-agent-langgraph-genai-hub","title":"Building a Pro-Code Agent on SAP BTP — Part 2: The Agent (LangGraph + GenAI Hub)","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/building-a-pro-code-agent-on-sap-btp-part-2-the-agent-langgraph-genai-hub/ba-p/14464244","content_type":"blog","published_on":"source:sap-community","explains":["capability:agent-tooling","capability:llm-integration"],"summary":"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 Core](artifact:btp-ai-core) via [@sap-ai-sdk/orchestration](artifact:sap-ai-sdk-orchestration), 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'.","author":"rodfior","published":"2026-08-20","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"agentic-ai-tag"},{"source":"source:sap-community","channel":"joule-tag"}],"first_seen":"2026-10-24"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 3 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-08-20"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":1513,"unit":"views"},{"value":3,"unit":"comments"},{"value":1,"unit":"likes"}]},"signals":{"views":1513,"likes":1,"comments":3,"metrics_at":"2026-11-01"},"series":null,"edges":{"authors":[]}}