agentskit.js

RouterCandidate

Auto-generated API reference for RouterCandidate.

Interface: RouterCandidate

Defined in: router.ts:3

#Properties

#adapter

adapter: AdapterFactory

Defined in: router.ts:5


#capabilities?

optional capabilities?: any

Defined in: router.ts:18

Capability override. Defaults to adapter.capabilities. Used to reject candidates missing required features (e.g. tools, multiModal).


#cost?

optional cost?: number

Defined in: router.ts:10

Relative cost hint (lower wins for policy='cheapest'). Only relative values matter — use $/1M tokens or any consistent unit.


#id

id: string

Defined in: router.ts:4


#latencyMs?

optional latencyMs?: number

Defined in: router.ts:12

Typical latency in ms. Lower wins for policy='fastest'.


#tags?

optional tags?: string[]

Defined in: router.ts:20

Free-form tags used by classifier routing (e.g. 'fast', 'coding').

Explore nearby

✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page