Skip to content

Python SDK v0.13.7

Choose a tag to compare

@arunreddy arunreddy released this 01 Oct 03:39
· 22 commits to main since this release
5a8732a

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.