"response_schema": list[Recipe] as a value in Structured output configuration totally works functionally, but mypy type checking breaks in the response because parsed: Optional[Union[pydantic.BaseModel, dict[Any, Any], Enum]] does not allow a list type.
this is true as of "google-genai>=1.16.1"
"response_schema": list[Recipe]as a value in Structured output configuration totally works functionally, but mypy type checking breaks in the response becauseparsed: Optional[Union[pydantic.BaseModel, dict[Any, Any], Enum]]does not allow a list type.this is true as of
"google-genai>=1.16.1"