Skip to content

RoutingContext

Defined in: src/models/routing/strategy.ts:16

Read-only inputs supplied to a routing strategy.

readonly messages: Message[];

Defined in: src/models/routing/strategy.ts:18

Fresh copy of the messages for this strategy ask.


readonly optional systemPrompt?: SystemPrompt;

Defined in: src/models/routing/strategy.ts:20

Fresh copy of the system prompt for this strategy ask.


readonly toolSpecs: ToolSpec[];

Defined in: src/models/routing/strategy.ts:22

Fresh copy of tool specifications for this strategy ask.


readonly candidates: readonly RoutingCandidate[];

Defined in: src/models/routing/strategy.ts:24

Stable configured candidate instances.


readonly invocationState: Readonly<InvocationState>;

Defined in: src/models/routing/strategy.ts:26

Live invocation state, exposed as read-only.


readonly attempts: readonly RoutingAttempt[];

Defined in: src/models/routing/strategy.ts:28

Chronological attempts made during this invocation.