feat: add support for Claude agents to OpenInference mapper - #340
Merged
Conversation
liramon2
requested a deployment
to
manual-approval
July 31, 2026 21:43 — with
GitHub Actions
Waiting
Contributor
Author
|
@strandly-the-agent Review this PR. Consolidate your findings into a single comment. |
This comment was marked as resolved.
This comment was marked as resolved.
liramon2
requested a deployment
to
manual-approval
August 1, 2026 00:26 — with
GitHub Actions
Waiting
Contributor
Author
|
@strandly-the-agent Review this PR. Consolidate your findings into a single comment. As for your questions:
|
This comment was marked as resolved.
This comment was marked as resolved.
liramon2
requested a deployment
to
manual-approval
August 3, 2026 01:14 — with
GitHub Actions
Waiting
liramon2
requested a deployment
to
manual-approval
August 3, 2026 01:19 — with
GitHub Actions
Waiting
Contributor
Author
|
@strandly-the-agent Review this PR. Consolidate your findings into a single comment. Finding B is out of the scope of this PR and tracked in #336 |
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
Author
|
@strandly-the-agent Review this PR. Consolidate your findings into a single comment. |
liramon2
requested a deployment
to
manual-approval
August 4, 2026 20:57 — with
GitHub Actions
Waiting
liramon2
requested a deployment
to
manual-approval
August 4, 2026 21:19 — with
GitHub Actions
Waiting
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
Author
|
@strandly-the-agent Review this PR. Consolidate your findings into a single comment. Mutation 4 seems attached to the 336 bug. Flatten-to-text is the right contract, but it's speculative right now. |
liramon2
requested a deployment
to
manual-approval
August 4, 2026 21:58 — with
GitHub Actions
Waiting
This comment was marked as resolved.
This comment was marked as resolved.
liramon2
requested a deployment
to
manual-approval
August 5, 2026 01:45 — with
GitHub Actions
Waiting
poshinchen
reviewed
Aug 10, 2026
poshinchen
reviewed
Aug 10, 2026
poshinchen
previously approved these changes
Aug 10, 2026
liramon2
force-pushed
the
claude-mapper
branch
from
August 10, 2026 19:51
ea70f0d to
bb9265e
Compare
liramon2
requested a deployment
to
manual-approval
August 10, 2026 19:51 — with
GitHub Actions
Waiting
poshinchen
approved these changes
Aug 11, 2026
poshinchen
left a comment
Contributor
There was a problem hiding this comment.
Make sure the description is updated!
9 tasks
sangminwoo
added a commit
to sangminwoo/evals
that referenced
this pull request
Aug 11, 2026
Resolves one conflict in the OpenInference mapper's `AgentInvocationSpan` construction. Upstream's strands-agents#340 added `metadata=metadata` from `_extract_llm_metadata`; this branch added `system_prompt` so the skill catalog survives mapping. The two set different fields, so both are kept, taking upstream's real metadata over this branch's `{}` placeholder.
9 tasks
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.
Description
The evals framework currently cannot evaluate agents built with Claude Agent SDK, which may be instrumented with OpenInference and produce spans with the scope
openinference.instrumentation.claude_agent_sdk. This PR modifiesOpenInferenceSessionMapperto map Claude Agent spans into Sessions. It includes support for unified ADOT spans and in-memory spans.This also includes producer agnostic fixes for the following OpenInference bugs:
output.value.contentonexecute_toolspans contained a list of text blocks, it was converted into a repr string instead having its text joined. Similarly, if output.value itself was a JSON list of content blocks, it was stored as the raw JSON string without text extraction.Related Issues
#329
Documentation PR
Type of Change
New feature
Testing
How have you tested the change? Verify that the changes do not break functionality or introduce new warnings.
hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.