Interfaces

RouterAgent

Interface: RouterAgent

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

One line of the roster the router reads. description is what the LLM sees — write it for the model ("Invoices, refunds and payment methods"), not for your team's org chart.

The description is untrusted DATA: it is JSON-encoded into a single roster line, and the router's rules are stated after the roster, so a description cannot break out of its line or override the rules.

Properties

description

readonly description: string

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

What this agent handles, in the model's language.


id

readonly id: string

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

Stable id. The router must copy one of these verbatim to hand off.

On this page