Hacker News new | ask | show | jobs
by redrix 547 days ago
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...

1 comments

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.