Skip to content

Commit 52db62e

Browse files
committed
refactor: update to use toJSONSchema from zod/v4
1 parent 19dabc0 commit 52db62e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/parse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import z, { type ZodType } from 'zod';
2+
import { toJSONSchema } from 'zod/v4';
23
import type { TaskCreateParams, TaskView } from '../resources/tasks';
34

45
// RUN
@@ -8,7 +9,7 @@ export type TaskCreateParamsWithSchema<T extends ZodType> = Omit<TaskCreateParam
89
};
910

1011
export function stringifyStructuredOutput<T extends ZodType>(schema: T): string {
11-
return JSON.stringify(z.toJSONSchema(schema));
12+
return JSON.stringify(toJSONSchema(schema));
1213
}
1314

1415
// RETRIEVE

0 commit comments

Comments
 (0)