RouterConfig
Defined in: scoring/router.ts:15
Properties
Section titled “Properties”dailyBudget?
Section titled “dailyBudget?”
optionaldailyBudget:number
Defined in: scoring/router.ts:21
Daily cost budget (0 = unlimited)
maxRetries?
Section titled “maxRetries?”
optionalmaxRetries:number
Defined in: scoring/router.ts:19
Maximum retries per agent before escalating
onAgentSelected()?
Section titled “onAgentSelected()?”
optionalonAgentSelected: (agent,task) =>void
Defined in: scoring/router.ts:23
Callback when an agent is selected
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onCostIncurred()?
Section titled “onCostIncurred()?”
optionalonCostIncurred: (agent,cost,task) =>void
Defined in: scoring/router.ts:27
Callback for cost tracking
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
onEscalate()?
Section titled “onEscalate()?”
optionalonEscalate: (fromAgent,toAgent,reason) =>void
Defined in: scoring/router.ts:25
Callback when escalating
Parameters
Section titled “Parameters”fromAgent
Section titled “fromAgent”toAgent
Section titled “toAgent”reason
Section titled “reason”string
Returns
Section titled “Returns”void
registry
Section titled “registry”registry:
AgentRegistry
Defined in: scoring/router.ts:17
Agent registry with available agents