Skip to content

TaskRouter

Defined in: scoring/router.ts:57

Task Router - intelligently routes tasks to agents

new TaskRouter(config): TaskRouter

Defined in: scoring/router.ts:62

RouterConfig

TaskRouter

getRemainingBudget(): number

Defined in: scoring/router.ts:236

Get remaining daily budget

number


getState(): RouterState

Defined in: scoring/router.ts:229

Get current router state

RouterState


route(task, complexity): Promise<RoutingResult<unknown>>

Defined in: scoring/router.ts:78

Route a task to the optimal agent

Omit<AgentTask, "complexityScore" | "complexityTier">

ComplexityScore

Promise<RoutingResult<unknown>>