Skip to content

To Add tool description as one of the gen_ai.tool attributes#2059

Merged
lmolkova merged 5 commits intoopen-telemetry:mainfrom
PRATIBHA-Moogi:tool-attributes
Apr 13, 2025
Merged

To Add tool description as one of the gen_ai.tool attributes#2059
lmolkova merged 5 commits intoopen-telemetry:mainfrom
PRATIBHA-Moogi:tool-attributes

Conversation

@PRATIBHA-Moogi
Copy link
Copy Markdown
Contributor

@PRATIBHA-Moogi PRATIBHA-Moogi commented Apr 7, 2025

Fixes #2087

Changes

All the available gen_ai agentic application frameworks - langchain, langgraph, crew.ai, autogen, llamaindex tools use "description" as as one of the configuration parameter on the basis of which gen_ai agents rightly identify a tool to be called when user expresses an intent using a natural language interface. The description provided to each tool play an important role in driving right-tool calling capability of involved llm.

This PR introduces "description" as one of the attributes for gen_ai.tool semantic conventions as that can help with diagnosing tool calling capabilities of llm used in the gen_ai.agent.

Merge requirement checklist

@PRATIBHA-Moogi PRATIBHA-Moogi requested a review from a team as a code owner April 9, 2025 04:48
@gyliu513
Copy link
Copy Markdown
Member

gyliu513 commented Apr 9, 2025

@PRATIBHA-Moogi CI was failed.

  1. Please add [chore] as prefix for your commit summary, like [chore] To Add tool description as one of the gen_ai.tool attributes
  2. makedown link check failed, but seems this is not caused by your PR.

@lmolkova can you help review? Thanks!

@lmolkova lmolkova moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Apr 10, 2025
@lmolkova
Copy link
Copy Markdown
Member

Please add changelog

@gyliu513
Copy link
Copy Markdown
Member

@PRATIBHA-Moogi you can take a look at my PR here #2024 as an example for how to add changelog.

@PRATIBHA-Moogi
Copy link
Copy Markdown
Contributor Author

@gyliu513 @lmolkova created this issue - #2087 as the changelog for covering this change request (PR).

@gyliu513
Copy link
Copy Markdown
Member

@PRATIBHA-Moogi it is not required, you can also use this PR's number in the changelog.

@github-actions github-actions bot added the enhancement New feature or request label Apr 11, 2025
@lmolkova lmolkova enabled auto-merge (squash) April 11, 2025 16:50
@lmolkova lmolkova moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Apr 11, 2025
@lmolkova lmolkova merged commit f9f14b0 into open-telemetry:main Apr 13, 2025
15 of 16 checks passed
@github-project-automation github-project-automation bot moved this from Ready to be Merged to Needs More Approval in Semantic Conventions Triage Apr 13, 2025
lmolkova pushed a commit to lmolkova/semantic-conventions that referenced this pull request May 13, 2025
…lemetry#2059)

Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Adding gen_ai.tool.description as additional attribute for agent's tool calling

5 participants