refactor(config): share agent model schema

This commit is contained in:
Peter Steinberger
2026-02-15 16:53:38 +00:00
parent 9143f33a80
commit 6e36d956d6
3 changed files with 15 additions and 20 deletions

View File

@@ -0,0 +1,11 @@
import { z } from "zod";
export const AgentModelSchema = z.union([
z.string(),
z
.object({
primary: z.string().optional(),
fallbacks: z.array(z.string()).optional(),
})
.strict(),
]);