Skip to content

ClassifierStrategyOptions

Defined in: src/models/routing/classifier-strategy.ts:83

Options for constructing a ClassifierStrategy.

readonly routingPolicy?: string;

Defined in: src/models/routing/classifier-strategy.ts:88

Routing policy, sent verbatim and never truncated. The SDK adds mandatory isolation, candidate-key, and structured-output rules that the policy cannot override. Defaults to the SDK input-complexity policy.


readonly systemPrompt?: string;

Defined in: src/models/routing/classifier-strategy.ts:90

Use routingPolicy.


readonly timeoutMs?: number;

Defined in: src/models/routing/classifier-strategy.ts:97

Maximum milliseconds to wait for the decision. Defaults to 30000. On timeout the in-flight call is aborted through its cancelSignal, which is honored implementation- and provider-dependently. The timeout runs independently of agent cancellation: RoutingContext carries no cancel signal, so cancelling the agent while a decision is in flight does not abort that decision.


readonly maxMessageChars?: number;

Defined in: src/models/routing/classifier-strategy.ts:99

Maximum characters copied from the latest request into the routing context. Defaults to 4000.


readonly maxAgentInstructionsChars?: number;

Defined in: src/models/routing/classifier-strategy.ts:101

Maximum characters copied from the parent agent’s system prompt text into the routing context. Defaults to 4000.


readonly maxCandidateChars?: number;

Defined in: src/models/routing/classifier-strategy.ts:107

Maximum aggregate characters for the serialized evidence (names, descriptions, and metadata) of all candidates. Evidence is never truncated; selection throws when the budget is exceeded. Defaults to 4000.