top | item 42394964

(no title)

redrix | 1 year 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...

discuss

order

jcheng|1 year ago

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.