zou-group / textgrad

TextGrad: Automatic ''Differentiation'' via Text -- using large language models to backpropagate textual gradients.
http://textgrad.com/
MIT License
1.9k stars 162 forks source link

structured outputs / pydantic #84

Open Dyke-F opened 4 months ago

Dyke-F commented 4 months ago

Is there a way to enforce structured outputs? Like in DSPY or instructor? Like using "response_model" as a pydantic model in the openai chat completions endpoint?

mertyg commented 4 months ago

Totally -- We started integrating Guidance #89 ! This is really important I agree, and I hope we'll get better here soon.