refactor: separate schema to files

This commit is contained in:
Justin Lin committed 2025-04-18 14:33:41 +08:00
1 parent 57d8f24930
commit 471b781d85
4 files changed
+64 -54

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { z } from 'zod'
export const requirementsSchema = z.object({
requirements: z.array(z.string()),
})
export type IRequirements = z.infer<typeof requirementsSchema>
export const responseSchema = z.object({
type: z.enum(['narrative', 'dialogue']),
content: z.string(),
})