# Variable PreferenceRouterConfigSchema`Const`

PreferenceRouterConfigSchema: ZodObject<
{
strongModel: ZodObject<
{
tier: ZodLiteral<"strong">;
cli: ZodEnum<
{
claude: "claude";
gemini: "gemini";
codex: "codex";
opencode: "opencode";
},
>;
costPerMillionTokens: ZodNumber;
qualityBaseline: ZodNumber;
},
$strip,
>;
weakModel: ZodObject<
{
tier: ZodLiteral<"weak">;
cli: ZodEnum<
{
claude: "claude";
gemini: "gemini";
codex: "codex";
opencode: "opencode";
},
>;
costPerMillionTokens: ZodNumber;
qualityBaseline: ZodNumber;
},
$strip,
>;
routingThreshold: ZodDefault<ZodNumber>;
minDataPoints: ZodDefault<ZodNumber>;
maxDataPoints: ZodDefault<ZodNumber>;
enableOnlineLearning: ZodDefault<ZodBoolean>;
domainThresholds: ZodOptional<ZodRecord<ZodString, ZodNumber>>;
},
$strip,
> = ...

Zod schema for config validation.

- Defined in packages/nexus-agents/src/cli-adapters/preference-router-types.ts:149