judge4c/src/types/ai-testcase.ts
Dioxide c9f8448721 The window is basically complete, but there are some issues need to fix.
1. The window won't scroll when complete.
2. The AI needs the context to generate new inputs, I don't know
how to write.
2025-06-20 17:37:00 +08:00

22 lines
429 B
TypeScript

import {z} from "zod";
export const AITestCaseInputSchema = z.object({
problemId: z.string(),
})
export type AITestCaseInput = z.infer<typeof AITestCaseInputSchema>
const input = z.object({
name: z.string(),
value: z.string()
})
export const AITestCaseOutputSchema = z.object({
expectedOutput: z.string(),
inputs: z.array(input)
})
export type AITestCaseOutput = z.infer<typeof AITestCaseOutputSchema>