Skip to content

fix(anthropic): send tool definitions in standardized format#5800

Open
valkrypton wants to merge 2 commits intogetsentry:masterfrom
valkrypton:fix/anthropic-tool-definitions
Open

fix(anthropic): send tool definitions in standardized format#5800
valkrypton wants to merge 2 commits intogetsentry:masterfrom
valkrypton:fix/anthropic-tool-definitions

Conversation

@valkrypton
Copy link

This change adds gen_ai.tool.definitions to the anthropic integration to align with the new Generative AI semantic conventions.

Description

  • Added gen_ai.tool.definitions constant to SPANDATA.
  • Updated Anthropic integration to extract and send standardized tool definitions.
  • Added verification tests and committed changes to fix/anthropic-tool-definitions.

Issues

Fixes: #5763

This change adds gen_ai.tool.definitions to the anthropic integration
to align with the new Generative AI semantic conventions.

Co-Authored-By: Claude 3.5 Sonnet <noreply@anthropic.com>
@valkrypton valkrypton requested a review from a team as a code owner March 24, 2026 10:26
@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (langchain) Update LLM span operation to gen_ai.generate_text by ericapisani in #5796

Bug Fixes 🐛

  • (anthropic) Send tool definitions in standardized format by valkrypton in #5800

🤖 This preview updates automatically when you update the PR.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Avoids setting description to literal 'None' string when missing.

Co-Authored-By: Claude 3.5 Sonnet <noreply@anthropic.com>
@valkrypton valkrypton force-pushed the fix/anthropic-tool-definitions branch from 1391c52 to 58c6801 Compare March 24, 2026 11:48
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.

anthropic: Send gen_ai.tool.definitions with appropriate format

1 participant