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

I built a toy[0] for Typescript that works similarly to this.

It takes the expected return type of a function, translates it into a JSON Schema, queries OpenAI, validates the response, and then magically returns the response as typed output.

[0]https://github.com/jumploops/magic



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

Search: