Skip to content

fix: preserve unknown fields and open-union variants in Interactions models - #3253

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara/1010828113
Nov 2, 2026
Merged

copybara-service[bot] merged 1 commit into
mainfrom
copybara/1010828113

Conversation

@copybara-service

Copy link
Copy Markdown

fix: preserve unknown fields and open-union variants in Interactions models

Enable preserveUnknownFields and modelSerializationMethods in the Python SDK. Unknown fields are kept at every nesting level, in responses and in requests: unknown request fields are forwarded instead of silently dropped, so unsupported options such as transcription_config.diarization are rejected by the API rather than ignored (#3162), and fields missing from the SDK schema reach the API. Unknown steps, content blocks and annotations round-trip as the payload the server sent, including stateless multi-turn history sent back as SDK objects or as stored dicts; known variants with invalid payloads still raise locally.

@copybara-service
copybara-service Bot force-pushed the copybara/1010828113 branch 2 times, most recently from 7fe20fd to 62825bc Compare November 2, 2026 23:06
…models

Enable `preserveUnknownFields` and `modelSerializationMethods` in the Python SDK. Unknown fields are kept at every nesting level, in responses and in requests: unknown request fields are forwarded instead of silently dropped, so unsupported options such as `transcription_config.diarization` are rejected by the API rather than ignored (#3162), and fields missing from the SDK schema reach the API. Unknown steps, content blocks and annotations round-trip as the payload the server sent, including stateless multi-turn history sent back as SDK objects or as stored dicts; known variants with invalid payloads still raise locally.

PiperOrigin-RevId: 1012502138
@copybara-service
copybara-service Bot merged commit 2eaf2d8 into main Nov 2, 2026
12 checks passed
@copybara-service
copybara-service Bot deleted the copybara/1010828113 branch November 2, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant