mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-03 15:20:50 +00:00
20 lines
426 B
TypeScript
20 lines
426 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>;
|