Skip to content

ClassifierStrategyOptions

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

Options for constructing a ClassifierStrategy.

readonly optional systemPrompt?: string;

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

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


readonly optional timeoutMs?: number;

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

Maximum milliseconds to wait for classification. Defaults to 30000. The timeout bounds how long selection waits, not the classifier request itself: the in-flight call is aborted through its cancel signal, which is honored provider-dependently.


readonly optional maxMessageChars?: number;

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

Maximum characters copied from the latest request into the classifier’s user message. Defaults to 4000.


readonly optional maxAgentInstructionsChars?: number;

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

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


readonly optional maxCandidateChars?: number;

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

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.