How sap-samples/btp-sourcing-decision-board works
Sourcing Decision Board accepts RFQ and supplier data, runs single or parallel cooperative/adversarial analyses, compares recommendations, and presents results for procurement review. The React application is the documented primary interface; a separate SAPUI5 frontend is also present. Flask handles decision APIs, streaming/progress, and persistence. The README documents history, dual-sourcing, cross-validation, and human governance. Several backend routes and frontend components were not sampled, so those relationships are shown only where documented; optional AI-provider links are marked dashed where wiring is unverified.
Main entry points: strategy_engine.py Strategy execution and comparison · server.py Decision API · base_agent.py Agent foundation · super_agent.py Decision synthesis
Components 23
Decision interfaces
- React application
react-app/src/App.jsx - Decision wizard
react-app/src/pages/DecisionWizard.jsx - RFQ dashboard
react-app/src/pages/RFQDashboard.jsx - API client
react-app/src/api/client.js - AI configuration
react-app/src/context/AIConfigContext.jsx - SAPUI5 interface
webapp/controller/ComparisonDashboard.controller.js
Decision services
- Decision API
server.py - Decision history
server.py - Progress and streaming
server.py
AI reasoning
- Strategy execution and comparison
agents/strategy_engine.py - Iterative refinement
agents/iterative_refinement_loop.py - Debate and challenge
agents/debate_challenge_loop.py - Decision synthesis
agents/super_agent.py - Price analysis
agents/price_agent.py - Risk analysis
agents/risk_agent.py - Supplier performance
agents/performance_agent.py - Commodity analysis
agents/commodity_agent.py - Agent foundation
agents/base_agent.py
Model providers
- SAP AI Core client
agents/sap_genai_client.py - Local proxy client
agents/local_proxy_client.py
Other components
- Procurement user
- SAP AI Core
- Local LLM proxy
Connections 26
- Procurement user → React application: uses
README.md - React application → Decision wizard: routes to
react-app/src/App.jsx - React application → RFQ dashboard: routes to
react-app/src/App.jsx - Decision wizard → API client: requests decisions
react-app/src/pages/DecisionWizard.jsx - RFQ dashboard → API client: loads history
react-app/src/pages/RFQDashboard.jsx - API client → Decision API: calls decision APIs
react-app/src/api/client.js - Decision wizard → AI configuration: reads settings
react-app/src/pages/DecisionWizard.jsx - Procurement user → SAPUI5 interface: may use
README.md - Decision API → Decision history: reads and writes
server.py - Decision API → Progress and streaming: serves progress
README.md - Decision API → Strategy execution and comparison: executes strategies
server.py - Strategy execution and comparison → Iterative refinement: dispatches
agents/strategy_engine.py - Strategy execution and comparison → Debate and challenge: dispatches
agents/strategy_engine.py - Strategy execution and comparison → Decision synthesis: provides synthesis
- Strategy execution and comparison → Strategy execution and comparison: compares results
agents/strategy_engine.py - Iterative refinement → Decision synthesis: uses synthesis
agents/iterative_refinement_loop.py - Debate and challenge → Decision synthesis: uses synthesis
agents/debate_challenge_loop.py - Price analysis → Agent foundation: extends
agents/__init__.py - Risk analysis → Agent foundation: extends
agents/__init__.py - Supplier performance → Agent foundation: extends
agents/__init__.py - Commodity analysis → Agent foundation: extends
agents/commodity_agent.py - Decision synthesis → SAP AI Core client: uses model client
agents/super_agent.py - Agent foundation → SAP AI Core client: calls completion
agents/base_agent.py - SAP AI Core client → SAP AI Core: authenticates and calls
agents/sap_genai_client.py - Local proxy client → Local LLM proxy: calls completion
agents/local_proxy_client.py - Decision API → Local proxy client: selects optional backend
server.py