Skip to content

feat(weave): trace Claude Agent SDK image prompts - #7667

Merged
rgao-coreweave merged 1 commit into
masterfrom
rgao/claude-agent-sdk-python-multimedia
Jul 29, 2026
Merged

feat(weave): trace Claude Agent SDK image prompts#7667
rgao-coreweave merged 1 commit into
masterfrom
rgao/claude-agent-sdk-python-multimedia

Conversation

@rgao-coreweave

@rgao-coreweave rgao-coreweave commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Record streamed Python Claude Agent SDK text and base64 or URL image prompts as GenAI input messages.
  • Preserve the original prompt iterator and the messages sent to Claude.

Example

Streamed image prompt in Weave captures the generated blue square with 42; Claude answers with the same color and number.

Testing

  • Python 3.10 Claude Agent SDK shard: 16 passed.
  • Ruff check and format verification passed.

Breaking changes

None.

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ro31337 ro31337 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.

Approving with a caveat that we should at least file a ticket about this case https://coreweave.slack.com/archives/C0880TX4U5V/p1785361829283229?thread_ts=1785277794.069789&cid=C0880TX4U5V

@rgao-coreweave
rgao-coreweave force-pushed the rgao/claude-agent-sdk-python-multimedia branch from bcd6fa0 to 914f2e4 Compare July 29, 2026 22:22
@rgao-coreweave
rgao-coreweave changed the base branch from rgao/claude-agent-sdk-python-subagent-tracing to master July 29, 2026 22:22
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 56.36364% with 24 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../integrations/claude_agent_sdk/otel_integration.py 56.36% 14 Missing and 10 partials ⚠️

📢 Thoughts on this report? Let us know!

@rgao-coreweave
rgao-coreweave force-pushed the rgao/claude-agent-sdk-python-multimedia branch from 914f2e4 to 621ff74 Compare July 29, 2026 22:28
@rgao-coreweave
rgao-coreweave merged commit cd33b45 into master Jul 29, 2026
108 of 109 checks passed
@rgao-coreweave
rgao-coreweave deleted the rgao/claude-agent-sdk-python-multimedia branch July 29, 2026 22:37
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants