PythonagentsonSAPBTP—production-gradefromdayone.
We build pro-code AI agents using open frameworks, deployed on SAP infrastructure — with memory, observability, and human-in-the-loop built in from the start.
LangGraphStateGraph—deterministic,testable,inspectable.
The agent runs a tight loop: the LLM decides whether to call a tool or return a final answer. Conditional routing keeps control flow explicit — no magic, no callbacks.
START
MODEL
call_model(state)
TOOLS
ToolNode(TOOLS)
END
Sixtools.Everyactionconfirmedbeforeitexecutes.
Each tool is a typed Python function. The agent decides when to call it — humans decide when to act on it.
run_analysis_tool
SAP AIF OData — /AIFErrorSummary
run_doc_error_catalog_tool
SharePoint · SAP AI Core vector search
draft_email_tool
Drafts email from Markdown report
send_email_tool
Sends via Email Service — only after confirmation
draft_jira_tool
Drafts Jira Story from report
create_jira_tool
Creates issue via Jira REST API v2
Human-in-the-Loop Pattern
##AWAITING_CONFIRMATION##
→ agent pauses and surfaces the draft
→ user replies "yes" → action executes
→ send_email_tool / create_jira_tool fires
Agentsthatremember.Contextthatcompounds.
Every completed analysis is persisted to SAP HANA Agent Memory. On the next conversation, the three most semantically relevant past reports are injected into the system prompt.
Conversation 1
"AIF errors today?"
persist_turn() → HANAConversation 2
"Any new issues?"
search_memories() threshold=0.65Conversation 3
"Same as last week?"
top-3 memories injected into prompt0.65
Similarity threshold
top-3
Memories per prompt
800
Chars per memory chunk
HANA
SAP Vector store
Everytoken,everytoolcall,everymillisecondtraced.
One call to auto_instrument() wraps LiteLLM, LangChain, and httpx with OpenTelemetry spans. Every LLM call, tool invocation, and HTTP request is traced end-to-end.
OTLP export
http/protobuf to Codemine Telemetry Dashboard
Token tracking
input · output · total per LLM call
Trace propagation
W3C traceparent forwarded from A2A caller
User attribution
user.id propagated to all child spans via XSUAA
READY TO BUILD
Ship your first pro-code agent on SAP BTP.
We provide the architecture, the code patterns, and the SAP integration know-how. You own the outcome.