Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean Structured Output Support #541

Open
frmsaul opened this issue Oct 24, 2024 · 3 comments
Open

Clean Structured Output Support #541

frmsaul opened this issue Oct 24, 2024 · 3 comments

Comments

@frmsaul
Copy link

frmsaul commented Oct 24, 2024

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)

@jeremedia
Copy link

#508

@Jellyfishboy
Copy link

+1

@miguelff
Copy link

miguelff commented Nov 20, 2024

Is there any reason why @jeremedia's proposal in #508 (comment) 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants