Skip to content

feat(python): preserve unknown fields and open-union variants in Interactions models - #1374

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara_1009673588
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
copybara_1009673588

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

feat(python): 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 (googleapis/python-genai#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.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1371 from googleapis:release-please--branches--main dea37a4

@copybara-service
copybara-service Bot force-pushed the copybara_1009673588 branch 3 times, most recently from c3df89d to 167f653 Compare October 29, 2026 15:20
…ractions 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 (googleapis/python-genai#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.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#1371 from googleapis:release-please--branches--main dea37a4
PiperOrigin-RevId: 1009673588

This branch has not been deployed

No deployments
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