zou-group / textgrad

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

structured outputs / pydantic #84

Open Dyke-F opened 1 month ago

Dyke-F commented 1 month 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 1 month ago

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