3 ms·
Just use function calling, declare your function schema using Zod, and convert it to JSONSchema automatically. You don't have to write your types more than once
by _andrei_ 3y ago
Just use function calling, declare your function schema using Zod, and convert it to JSONSchema automatically. You don't have to write your types more than once, you get proper validation with great error messages, and can extend it.