mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 07:01:40 +00:00
12 lines
213 B
TypeScript
12 lines
213 B
TypeScript
import { z } from "zod";
|
|
|
|
export const AgentModelSchema = z.union([
|
|
z.string(),
|
|
z
|
|
.object({
|
|
primary: z.string().optional(),
|
|
fallbacks: z.array(z.string()).optional(),
|
|
})
|
|
.strict(),
|
|
]);
|