Clean Structured Output Support
Is your feature request related to a problem? Please describe. Anyone had any luck supporting structure output?
https://platform.openai.com/docs/guides/structured-outputs/introduction
Describe the solution you'd like It would be awesome if we had a clean DSL to easily generate the json schema objects. I tried to use EasyTalk, but it results in incredibly ugly code.
Additional context What are some recommended solutions for this?
The Python and JS clients both have beautiful and easy ways of doing this (pydantic and zod)
https://github.com/alexrudall/ruby-openai/issues/508
+1
Is there any reason why @jeremedia's proposal in https://github.com/alexrudall/ruby-openai/issues/508#issuecomment-2291916913 hasn't been adopted yet?
It looks like a good approach to structured outputs. This is a very important feature for adoption of this library, given structured output parsing is the cornerstone for many agentic workflows.
What's the best way of making the feature happen?