ClassifierStrategyOptions
Defined in: src/models/routing/classifier-strategy.ts:83
Options for constructing a ClassifierStrategy.
Properties
Section titled “Properties”routingPolicy?
Section titled “routingPolicy?”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.
systemPrompt?
Section titled “systemPrompt?”readonly systemPrompt?: string;Defined in: src/models/routing/classifier-strategy.ts:90
Deprecated
Section titled “Deprecated”Use routingPolicy.
timeoutMs?
Section titled “timeoutMs?”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.
maxMessageChars?
Section titled “maxMessageChars?”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.
maxAgentInstructionsChars?
Section titled “maxAgentInstructionsChars?”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.
maxCandidateChars?
Section titled “maxCandidateChars?”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.