Skip to content

fix(google-genai): capture server tool message parts - #701

Merged
lmolkova merged 5 commits into
open-telemetry:mainfrom
lmolkova:fix-google-genai-server-tool-parts
Sep 13, 2026
Merged

lmolkova merged 5 commits into
open-telemetry:mainfrom
lmolkova:fix-google-genai-server-tool-parts

Conversation

@lmolkova

Copy link
Copy Markdown
Member

Maps Google GenAI provider-executed tool calls and results to server tool message parts for Generate Content and Interactions. Client-executed function calls remain regular tool call parts.

Known concern: the new conformance cassettes are synthesized and marked for re-recording against the provider.

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-09-13 23:00 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The synthesized provider responses require human validation or re-recording against the real Google GenAI API.

Pull request overview

Adds server-executed tool calls and results to Google GenAI message telemetry.

Changes:

  • Maps Generate Content and Interactions server tools to semantic-convention message parts.
  • Adds parser and conformance coverage.
  • Adds synthesized VCR fixtures and a changelog fragment.
File summaries
File Description
tests/test_conformance.py Registers new scenarios.
tests/interactions/test_parser.py Tests Interactions mappings.
tests/generate_content/test_message.py Tests Generate Content mappings.
tests/conformance/server_tool_calling.py Adds server-tool conformance scenarios.
tests/cassettes/interactions_server_tool_calling_conformance.yaml Adds Interactions replay data.
tests/cassettes/generate_content_server_tool_calling_conformance.yaml Adds Generate Content replay data.
src/.../message.py Maps Generate Content server tools.
src/.../interactions.py Maps Interactions server-tool steps.
.changelog/701.fixed Documents the fix.
Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lmolkova
lmolkova marked this pull request as ready for review September 12, 2026 20:54
@lmolkova
lmolkova requested a review from a team as a code owner September 12, 2026 20:54
@lmolkova
lmolkova added this pull request to the merge queue Sep 13, 2026
Merged via the queue into open-telemetry:main with commit 151efd0 Sep 13, 2026
75 checks passed
@lmolkova
lmolkova deleted the fix-google-genai-server-tool-parts branch September 13, 2026 22:44
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.

3 participants