Skip to content

Forward-merge release/0.7 into main - #775

Merged
GPUtester merged 1 commit into
mainfrom
release/0.7
Aug 12, 2026
Merged

Forward-merge release/0.7 into main#775
GPUtester merged 1 commit into
mainfrom
release/0.7

Conversation

@rapids-bot

@rapids-bot rapids-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

Forward-merge triggered by push to release/0.7 that creates a PR to keep main up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

Normalize Anthropic user-role tool_result blocks to OTel tool messages so Agent Observability can correlate and display their tool_call_response payloads. Preserve response as the payload key required by the OTel input-message JSON schema.

#### Overview



- [x] I confirm this contribution is my own work, or I have the right to submit it under this project's license.
- [x] I searched existing issues and open pull requests, and this does not duplicate existing work.

#### Details

Correct Claude tool-result projection in GenAI OpenTelemetry spans. Claude represents tool results as user messages containing only tool_result parts; NeMo Relay now projects these as role: "tool" messages so backends such as Datadog LLM Observability can associate tool calls with their results.

#### Where should the reviewer start?

N/A

#### Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

None



## Summary by CodeRabbit

- **Bug Fixes**
  - Corrected serialization of messages containing only tool results so they use the `tool` role instead of `user`.
  - Preserved tool call response details, including IDs and returned results, in GenAI telemetry.
  - Improved handling of messages with mixed tool-result and text content, as well as empty content arrays.

- **Tests**
  - Added coverage for Claude-style tool-result messages and their normalized telemetry output.

Authors:
  - Matthew Dwyer (https://github.com/Mluckydwyer)

Approvers:
  - Will Killian (https://github.com/willkill07)

URL: #768
@rapids-bot
rapids-bot Bot requested a review from a team as a code owner August 12, 2026 23:20
@GPUtester
GPUtester merged commit f4a7716 into main Aug 12, 2026
1 check passed
@rapids-bot

rapids-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown
Author

SUCCESS - forward-merge complete.

@github-actions github-actions Bot added size:S PR is small lang:rust PR changes/introduces Rust code labels Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang:rust PR changes/introduces Rust code size:S PR is small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants