GenAI | Update execute tool to have name required#3595
Merged
lmolkova merged 3 commits intoopen-telemetry:mainfrom Apr 4, 2026
Merged
GenAI | Update execute tool to have name required#3595lmolkova merged 3 commits intoopen-telemetry:mainfrom
lmolkova merged 3 commits intoopen-telemetry:mainfrom
Conversation
lmolkova
approved these changes
Apr 3, 2026
Member
lmolkova
left a comment
There was a problem hiding this comment.
Thanks!
Tool name is required in order to make a tool call - models request which tool to execute using name and server-side tool calls also have it.
It's always available - even with parameterless annotation/decorator - the name is the name of the function.
alexmojaki
approved these changes
Apr 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #
area: gen-ai
Changes
When implementing execute tool call in genai-utils for python-contrib, it became apparant that the name of the tool should be required instead of recommended.
Addresses comments in open-telemetry/opentelemetry-python-contrib#4356
Exploring existing genai frameworks shows a few times a tool call name would not be supplied would be during langchain tool streaming chunks, but the tool name would have been provided on the start of the tool call. Openai sdk still lists tool call name as optional in it's protobuf. It appears that a name is provided regardless.
Important
Pull requests acceptance are subject to the triage process as described in Issue and PR Triage Management.
PRs that do not follow the guidance above, may be automatically rejected and closed.
Merge requirement checklist
[chore]