import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; /** * Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided. */ export declare const AutoBetaRouterPluginCostTier: { readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; readonly Xhigh: "xhigh"; readonly Max: "max"; }; /** * Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided. */ export type AutoBetaRouterPluginCostTier = OpenEnum; export type AutoBetaRouterPlugin = { /** * List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable. */ allowedModels?: Array | undefined; /** * Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided. * * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. */ costQualityTradeoff?: number | undefined; /** * Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided. */ costTier?: AutoBetaRouterPluginCostTier | undefined; /** * Set to false to disable the auto-beta-router plugin for this request. Defaults to true. */ enabled?: boolean | undefined; /** * List of model patterns to exclude from auto-beta-router selection. Supports wildcards (e.g., "meta-llama/*" excludes all Llama models). Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after allowed_models, so an excluded pattern always wins over an allowed one. */ excludedModels?: Array | undefined; id: "auto-beta-router"; }; /** @internal */ export declare const AutoBetaRouterPluginCostTier$outboundSchema: z.ZodType; /** @internal */ export type AutoBetaRouterPlugin$Outbound = { allowed_models?: Array | undefined; cost_quality_tradeoff?: number | undefined; cost_tier?: string | undefined; enabled?: boolean | undefined; excluded_models?: Array | undefined; id: "auto-beta-router"; }; /** @internal */ export declare const AutoBetaRouterPlugin$outboundSchema: z.ZodType; export declare function autoBetaRouterPluginToJSON(autoBetaRouterPlugin: AutoBetaRouterPlugin): string; //# sourceMappingURL=autobetarouterplugin.d.ts.map