Skip to content

fix(models): serialize multimodal function response display names#2305

Open
MukundaKatta wants to merge 1 commit intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-function-response-display-name
Open

fix(models): serialize multimodal function response display names#2305
MukundaKatta wants to merge 1 commit intogoogleapis:mainfrom
MukundaKatta:codex/python-genai-function-response-display-name

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • serialize nested function_response payloads with alias-aware camelCase keys
  • preserve displayName inside multimodal function-response parts so $ref names can match the uploaded media part
  • add a focused regression test for the generated wire shape

Testing

  • python3 -m py_compile google/genai/models.py google/genai/tests/types/test_types.py
  • python3 -m pytest google/genai/tests/types/test_types.py -k function_response_display_name

@Venkaiahbabuneelam Venkaiahbabuneelam self-assigned this Apr 20, 2026
@Venkaiahbabuneelam Venkaiahbabuneelam added the size:M Code changes between 10-40 lines label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M Code changes between 10-40 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants