vintasoftware / django-ai-assistant

Integrate AI Assistants with Django to build intelligent applications
https://vintasoftware.github.io/django-ai-assistant/
MIT License
132 stars 7 forks source link

Structured output #127

Open fjsj opened 3 weeks ago

fjsj commented 3 weeks ago

Related to #28

We should also support structured output, i.e., validate the output with Pydantic and retry if necessary. This library supports it: https://docs.phidata.com/assistants/structured-output

Seems doable with https://python.langchain.com/v0.2/docs/how_to/extraction_parse/#using-pydanticoutputparser