import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; /** * Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, stage. */ export declare const Algorithm: { readonly Capability: "capability"; readonly Stage: "stage"; readonly Auto: "auto"; readonly Random: "random"; readonly Composite: "composite"; readonly Passthrough: "passthrough"; }; /** * Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, stage. */ export type Algorithm = OpenEnum; export type SwitchyardRouterPlugin = { /** * Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, stage. */ algorithm?: Algorithm | undefined; id: "switchyard-router"; /** * The model that runs the judge call for the judge-backed algorithms ("capability", "stage", and "composite"). The model must support structured outputs and have a provider that your account and request settings allow. Otherwise, the request uses the platform default judge, google/gemini-3.5-flash-lite, or openai/gpt-4o-mini when the default does not fit either, and reports the reason in the routing metadata. The judge call is billed to you like any other request. */ judgeModel?: string | undefined; }; /** @internal */ export declare const Algorithm$outboundSchema: z.ZodType; /** @internal */ export type SwitchyardRouterPlugin$Outbound = { algorithm?: string | undefined; id: "switchyard-router"; judge_model?: string | undefined; }; /** @internal */ export declare const SwitchyardRouterPlugin$outboundSchema: z.ZodType; export declare function switchyardRouterPluginToJSON(switchyardRouterPlugin: SwitchyardRouterPlugin): string; //# sourceMappingURL=switchyardrouterplugin.d.ts.map