Skip to content

chore: sdk regeneration 2026-04-29#703

Merged
GregHolmes merged 7 commits intomainfrom
gh/sdk-gen-2026-04-29
May 5, 2026
Merged

chore: sdk regeneration 2026-04-29#703
GregHolmes merged 7 commits intomainfrom
gh/sdk-gen-2026-04-29

Conversation

@GregHolmes
Copy link
Copy Markdown
Contributor

@GregHolmes GregHolmes commented Apr 29, 2026

Compatibility

  • Restored legacy public aliases for renamed Agent History models and params:
    • AgentV1HistoryContent -> ConversationHistoryMessage
    • AgentV1HistoryFunctionCalls -> FunctionCallHistoryMessage
    • AgentV1SettingsAgentContextMessagesItemContent -> ConversationHistoryMessage
    • AgentV1SettingsAgentContextMessagesItemFunctionCalls -> FunctionCallHistoryMessage
  • Restored legacy create-key request aliases:
    • CreateKeyV1RequestOne -> CreateKeyV1Request
    • CreateKeyV1RequestOneParams -> CreateKeyV1RequestParams
  • Added compatibility shim modules, package-level re-exports, runtime tests, wire coverage, and targeted mypy coverage so existing imports and typed call sites continue to work.

Other Changes

  • Re-applied socket-client manual patches:
    • broad except Exception handling across socket clients
    • optional control-message defaults for send_keep_alive, send_finalize, send_close_stream, send_flush, send_clear, and send_close
    • agent/v1 _sanitize_numeric_types
    • listen/v2 raw send_configure(message: typing.Any) shim and broader response handling
  • Added AgentV1InjectAgentMessageBehavior.
  • Added ListenV2LanguageHint and language_hint support on Listen V2 connect clients.
  • Updated regen docs and .fernignore to preserve the new compatibility shims and regression tests in future regenerations.

Validation

  • uv run pytest tests/custom/test_agent_history.py tests/custom/test_compat_aliases.py tests/wire/test_manage_v1_projects_keys.py
  • uv run mypy --ignore-missing-imports tests/typecheck/compat_aliases.py
  • uv run pytest

@GregHolmes GregHolmes requested a review from lukeocodes as a code owner April 29, 2026 12:51
@GregHolmes GregHolmes changed the title chore: SDK regeneration 2026-04-29 chore: sdk regeneration 2026-04-29 Apr 29, 2026
@GregHolmes GregHolmes self-assigned this Apr 29, 2026
lukeocodes
lukeocodes previously approved these changes Apr 29, 2026
GregHolmes added 2 commits May 5, 2026 09:58
Restore legacy agent-history and create-key request aliases on top of the regenerated types, add compatibility coverage, and update regen docs/freeze rules so future Fern runs keep the shims intact.
Align the Listen V2, streaming TTS, voice agent, and management project examples with the current SDK/runtime behavior after regen, including safer websocket flows and updated project update handling.
@GregHolmes GregHolmes force-pushed the gh/sdk-gen-2026-04-29 branch from bd3e4e0 to 40bcfe3 Compare May 5, 2026 08:59
  Adds tests/manual/compat/main.py — a four-step script that proves the
  legacy public symbols restored in c0589cb still work end to end:
  identity with the canonical names, in-memory construction, TypedDict
  alias usage, and a real keys.create/keys.delete wire round-trip via
  CreateKeyV1RequestOneParams.

  Covered by the existing tests/manual entry in .fernignore so it
  survives future regens.
@GregHolmes GregHolmes merged commit 6038942 into main May 5, 2026
10 checks passed
@GregHolmes GregHolmes deleted the gh/sdk-gen-2026-04-29 branch May 5, 2026 11:19
GregHolmes added a commit that referenced this pull request May 5, 2026
Re-applied the four socket-client patches (broad except, optional message
defaults, agent _sanitize_numeric_types, listen/v2 send_configure shim).

Re-applied the legacy alias re-exports to seven package __init__.py files
(top-level, agent/, agent/v1/, agent/v1/{types,requests}/, types/, requests/)
that PR #703 introduced but didn't freeze. Added those inits to .fernignore
and documented them under temporarily-frozen in AGENTS.md so the next regen
cycle protects them via the .bak swap.
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