You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Use core 0.3.5, which parses JSON and JSON-schema output into the structured object for non-streaming OpenAI responses (AGNT5-1371, AGNT5-1416).
lm.generate(..., response_format=X) now returns the parsed value in GenerateResponse.structured_output (and .parsed / .object) on the first call and after checkpoint replay: a Pydantic instance, a dataclass instance, or a dict. Invalid JSON or a validation failure logs a warning and returns None (AGNT5-1371).
Changed
A dataclass response_format now yields a dataclass instance in structured_output instead of a dict.