Skip to content

fix(gen_ai): Map Anthropic tool results to canonical attribute - #660

Merged
obostjancic merged 1 commit into
mainfrom
fix/anthropic-tool-result-mapping
Oct 2, 2026
Merged

obostjancic merged 1 commit into
mainfrom
fix/anthropic-tool-result-mapping

Conversation

@obostjancic

@obostjancic obostjancic commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Add anthropic.tool_result.content as a deprecated string attribute with gen_ai.tool.call.result as its replacement and backfill status. Include it in the symmetric tool-result alias group and regenerate JavaScript and Python metadata.

This lets downstream ingestion use the existing conventions mapping instead of adding an Anthropic-specific rendering fallback. The mapping takes effect once downstream consumers pick up the updated conventions.

Part of TET-3070

Add anthropic.tool_result.content as a deprecated backfill attribute pointing to
 gen_ai.tool.call.result. Keep tool-result aliases symmetric and regenerate
JavaScript and Python metadata so downstream consumers can apply the mapping.
@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 1, 2026 1:57pm UTC

Request Review

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown

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 ✨

Op

  • Deprecate framework-specific span ops by Lms24 in #622
  • Add span op deprecation support by Lms24 in #621

Bug Fixes 🐛

  • (gen_ai) Map Anthropic tool results to canonical attribute by obostjancic in #660

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb 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.

Where is anthropic.tool_result.content set?

@alexander-alderman-webb alexander-alderman-webb 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.

is used by anthropic-ai/sdk

@obostjancic
obostjancic merged commit 991f82f into main Oct 2, 2026
20 checks passed
@obostjancic
obostjancic deleted the fix/anthropic-tool-result-mapping branch October 2, 2026 08:26

This branch was successfully deployed

1 active deployment
Preview — 6fb8bf80 Deployed Oct 1, 2026 by vercel[bot]
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