Interfaces

LlmRouterOptions

Interface: LlmRouterOptions

Defined in: src/patterns/LlmRouter.ts:142

Properties

agents

readonly agents: readonly RouterAgent[]

Defined in: src/patterns/LlmRouter.ts:148

The roster. Two or more agents; ids must be unique.


id?

readonly optional id?: string

Defined in: src/patterns/LlmRouter.ts:162

Stable id used in events + stage ids. Default 'router'.


instruction?

readonly optional instruction?: string

Defined in: src/patterns/LlmRouter.ts:154

Extra authored framing, placed before the roster ("Prefer billing for anything money-shaped"). Your words, trusted — unlike descriptions, which ride as data.


model

readonly model: string

Defined in: src/patterns/LlmRouter.ts:146

Model to ask.


name?

readonly optional name?: string

Defined in: src/patterns/LlmRouter.ts:164

Display name. Default 'Router'.


provider

readonly provider: LLMProvider

Defined in: src/patterns/LlmRouter.ts:144

The LLM that makes the decision.


temperature?

readonly optional temperature?: number

Defined in: src/patterns/LlmRouter.ts:160

Sampling temperature for the routing call. Defaults to 0 — routing is a classification, and the same message should reach the same specialist twice running.

On this page