mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-04 07:40:51 +00:00
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.
22 lines
429 B
TypeScript
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>
|
|
|
|
|