Skip to content

chore: sdk regeneration 2026-04-29#703

Open
GregHolmes wants to merge 6 commits intomainfrom
gh/sdk-gen-2026-04-29
Open

chore: sdk regeneration 2026-04-29#703
GregHolmes wants to merge 6 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
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.
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