Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh wow, it supports directly specifying a Pydantic model as an output schema that it will adhere to for structured JSON output. That’s fantastic!

https://github.com/googleapis/python-genai?tab=readme-ov-fil...



FYI all the LLM Python SDKs that support structured output can use Pydantic for the schema—at least all the ones I can think of.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: