FusionAgent — Multi-Model Orchestration Gateway
A stateless LLM gateway that auto-classifies each request, runs role-specific models in parallel, and merges them into a single response by scoring confidence.
Sitting between bot services and local LLM backends, it processes each request through a pipeline of classify → run role agents in parallel → score confidence → merge. Memory and retrieval (RAG) stay the responsibility of the calling service, so the gateway focuses purely on orchestration and safety — a deliberate boundary that keeps domain logic out of the gateway.
What sets it apart
- Adaptive routing Automatically distinguishes empathy-oriented from analytical/reasoning responses, switching to a hybrid path that runs both models in parallel only when needed.
- Cost-aware merge gating When two candidate responses are confident or similar enough, it skips the extra synthesis LLM call — cutting unnecessary compute on a single-GPU setup.
- Fault-isolated resilience Circuit breakers and health probes let it fall back instantly to a live model when a backend goes down, without blocking on timeouts.
- Real-time token streaming Single-model paths stream backend tokens straight through for responsiveness; hybrid paths send after merging to preserve completeness.
- Layered DB guardrails When executing LLM-generated queries, read-only access, syntax validation, and target-table restrictions are stacked to structurally prevent sensitive-data exposure.
- Zero-downtime config reload Model endpoints and policies re-apply automatically on file change, so operators tune behavior without restarts.