TaskRouter
Defined in: scoring/router.ts:57
Task Router - intelligently routes tasks to agents
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TaskRouter(
config):TaskRouter
Defined in: scoring/router.ts:62
Parameters
Section titled “Parameters”config
Section titled “config”Returns
Section titled “Returns”TaskRouter
Methods
Section titled “Methods”getRemainingBudget()
Section titled “getRemainingBudget()”getRemainingBudget():
number
Defined in: scoring/router.ts:236
Get remaining daily budget
Returns
Section titled “Returns”number
getState()
Section titled “getState()”getState():
RouterState
Defined in: scoring/router.ts:229
Get current router state
Returns
Section titled “Returns”route()
Section titled “route()”route(
task,complexity):Promise<RoutingResult<unknown>>
Defined in: scoring/router.ts:78
Route a task to the optimal agent
Parameters
Section titled “Parameters”Omit<AgentTask, "complexityScore" | "complexityTier">
complexity
Section titled “complexity”Returns
Section titled “Returns”Promise<RoutingResult<unknown>>