-
Notifications
You must be signed in to change notification settings - Fork 787
Closed as not planned
Closed as not planned
Copy link
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status:awaiting user responsestatus:staletype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
"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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.status:awaiting user responsestatus:staletype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.