Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We went from using JSON schema to TypeScript types (with comments as needed). For complex schemas (in unscientific testing) we found the output to be better with TypeScript types, and more or less the same for simpler schemas. TypeScript types are also easier (shorter) to write than JSON schema.

There are few benefits to using JSON schema imo, since the LLM isn't a precise validator.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: