Hacker News new | ask | show | jobs
by _andrei_ 1065 days 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.