Add cost-aware routing and LLM budget tracking
- BudgetTracker tracks LLM token cost separately from tool cost - LlmClient auto-records cost into request-scoped budget - Router selects tier from classify confidence, intent risk, escalation count - Supervisor short-circuits via regex fast-path when rule confidence is high - Onboarding skill loads user escalation history to inform routing
This commit is contained in:
1 parent
211de18476
commit
21df14cd00
16 files changed
+473
-22
No files matched your search
@@ -46,6 +46,9 @@ describe("escalation trigger", () => {
|
||||
maxHandoffs: 4,
|
||||
maxSameAgentVisits: 2,
|
||||
maxToolCalls: 20,
|
||||
totalCostUsd: 0,
|
||||
totalLlmCostUsd: 0,
|
||||
totalToolCostUsd: 0,
|
||||
toolCalls: 0,
|
||||
visits: {},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user