We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19dabc0 commit 52db62eCopy full SHA for 52db62e
src/lib/parse.ts
@@ -1,4 +1,5 @@
1
import z, { type ZodType } from 'zod';
2
+import { toJSONSchema } from 'zod/v4';
3
import type { TaskCreateParams, TaskView } from '../resources/tasks';
4
5
// RUN
@@ -8,7 +9,7 @@ export type TaskCreateParamsWithSchema<T extends ZodType> = Omit<TaskCreateParam
8
9
};
10
11
export function stringifyStructuredOutput<T extends ZodType>(schema: T): string {
- return JSON.stringify(z.toJSONSchema(schema));
12
+ return JSON.stringify(toJSONSchema(schema));
13
}
14
15
// RETRIEVE
0 commit comments