How yash3510/multi-llm-agentic-ai works
4CE is an on-premise agentic AI workbench delivered as a plugin set inside Open WebUI. Its main workflow classifies and routes a request, grounds it in local documents, produces and verifies a deliverable, retries once after a failed check, and withholds release until human approval. The README documents the chain and its tool capabilities; the sampled orchestrator excerpt confirms tool use and approval handling. Some internal stage links are therefore documented rather than independently visible in sampled source.
Main entry points: orchestrator.py TONY orchestrator · open_webui/main.py Open WebUI runtime · loaders/main.py Document retrieval · provider.py File storage
Components 23
Agent workflow
- TONY orchestrator
4ce/functions/orchestrator.py - Task classification
4ce/functions/orchestrator.py - Local model routing
4ce/functions/orchestrator.py - FRIDAY grounding
4ce/functions/orchestrator.py - JARVIS deliverable
4ce/functions/orchestrator.py - ULTRON verification
4ce/functions/orchestrator.py - Failure replan
4ce/functions/orchestrator.py
Operational tools
- Code sandbox
4ce/tools/sandbox.py - Engineering calculations
4ce/tools/calculations.py - SOP thresholds
4ce/tools/sop_check.py - Workspace files
4ce/tools/files.py - Spreadsheet tools
4ce/tools/sheets.py - Vision calibration
4ce/tools/calibration.py - Document rendering
4ce/tools/deliverables.py
Open WebUI host
- Open WebUI runtime
backend/open_webui/main.py - Chat persistence
backend/open_webui/models/chats.py - Document retrieval
backend/open_webui/retrieval/loaders/main.py - File storage
backend/open_webui/storage/provider.py
Evidence and release
- Sovereignty audit
4ce/tools/sovereignty.py - Audit trail
backend/open_webui/utils/fource_audit.py
Other components
- Workbench user
- Human reviewer
- Local model server
Connections 26
- Workbench user → TONY orchestrator: submits turn
- TONY orchestrator → Task classification: classifies task
4ce/functions/orchestrator.py - Task classification → Local model routing: selects task model
4ce/functions/orchestrator.py - Local model routing → Local model server: calls locally
- Local model routing → FRIDAY grounding: routes request
4ce/functions/orchestrator.py - FRIDAY grounding → Document retrieval: grounds in RAG
- FRIDAY grounding → JARVIS deliverable: provides analysis
4ce/functions/orchestrator.py - JARVIS deliverable → ULTRON verification: submits output
4ce/functions/orchestrator.py - ULTRON verification → Failure replan: replans on failure
4ce/functions/orchestrator.py - Failure replan → FRIDAY grounding: reruns grounding
4ce/functions/orchestrator.py - Failure replan → JARVIS deliverable: reruns production
4ce/functions/orchestrator.py - ULTRON verification → Human reviewer: requests approval
- Human reviewer → TONY orchestrator: approves or rejects
4ce/functions/orchestrator.py - TONY orchestrator → Code sandbox: runs generated code
- TONY orchestrator → Engineering calculations: invokes calculations
- TONY orchestrator → SOP thresholds: checks thresholds
- TONY orchestrator → Workspace files: uses file tools
- TONY orchestrator → Spreadsheet tools: reads worksheets
4ce/functions/orchestrator.py - TONY orchestrator → Vision calibration: uses vision tools
- TONY orchestrator → Document rendering: renders approved output
- TONY orchestrator → Sovereignty audit: audits configuration
- TONY orchestrator → Audit trail: records execution
4ce/functions/orchestrator.py - TONY orchestrator → Open WebUI runtime: registers selectable model
- Open WebUI runtime → Chat persistence: persists chats
backend/open_webui/main.py - Open WebUI runtime → File storage: uses file storage
- Document retrieval → File storage: loads stored files