Skip to content

chore: sdk regeneration 2026-04-20#694

Open
GregHolmes wants to merge 5 commits intomainfrom
gh/sdk-gen-2026-04-20
Open

chore: sdk regeneration 2026-04-20#694
GregHolmes wants to merge 5 commits intomainfrom
gh/sdk-gen-2026-04-20

Conversation

@GregHolmes
Copy link
Copy Markdown
Contributor

@GregHolmes GregHolmes commented Apr 20, 2026

Summary

  • regenerate the Python SDK from the latest API specs using the updated Fern toolchain
  • keep the new generated Listen v2 Configure flow and typed ConfigureSuccess response
  • re-apply only the manual patches that are still required after regeneration
  • remove frozen patches that Fern now generates correctly
  • align CI and docs with the generated Python 3.10+ package metadata

Kept From Generator

  • listen/v2 send_configure now sends a typed ListenV2Configure model
  • Listen v2 socket responses now include ListenV2ConfigureSuccess
  • latest generated changes across HTTP clients, models, tests, and wiremock fixtures
  • generated package metadata now declares Python 3.10+ support

Manual Patches Re-Applied

  • broaden socket client exception handling to except Exception to preserve custom transport compatibility
  • restore optional no-payload defaults for websocket control methods so callers do not need to construct empty message objects
  • restore _sanitize_numeric_types in agent/v1/socket_client.py for integer fields the API still rejects as floats

Manual Patches Removed

  • remove the three frozen float -> int type fixes in listen response models since Fern now generates them correctly
  • remove the frozen construct_type(type_=..., object_=...) socket-client patch since Fern now generates the correct keyword-call form

Breaking Changes

  • listen/v2 send_configure now expects a ListenV2Configure model instead of accepting arbitrary payloads such as raw dicts or pre-serialized JSON strings
  • generated package metadata now targets Python 3.10+ instead of Python 3.8+
  • this is intentional for the upcoming major version

CI And Docs

  • update workflow matrices to test supported Python versions only (3.10 through 3.13)
  • update README and CONTRIBUTING to reflect Python 3.10+ support

Validation

  • pytest (170 passed)
  • ruff check src
  • mypy src

@GregHolmes GregHolmes requested a review from lukeocodes as a code owner April 20, 2026 15:32
@GregHolmes GregHolmes force-pushed the gh/sdk-gen-2026-04-20 branch from b2f7439 to 8020a62 Compare April 20, 2026 15:33
@GregHolmes GregHolmes changed the title chore: SDK regeneration 2026-04-20 chore: sdk regeneration 2026-04-20 Apr 20, 2026
@GregHolmes GregHolmes force-pushed the gh/sdk-gen-2026-04-20 branch 2 times, most recently from c5002d3 to 8020a62 Compare April 22, 2026 10:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants