4 ms·
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://githu
by redrix 2y 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-file#json-response-schema https://github.com/googleapis/python-genai?tab=readme-ov-fil...
- jcheng 2y agoFYI all the LLM Python SDKs that support structured output can use Pydantic for the schema—at least all the ones I can think of.