Skip to content

feat(anthropic): trace beta managed agents apis#270

Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-feat-anthropic-managed-agents-tracing
Apr 14, 2026
Merged

feat(anthropic): trace beta managed agents apis#270
Abhijeet Prasad (AbhiPrasad) merged 1 commit into
mainfrom
abhi-feat-anthropic-managed-agents-tracing

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Anthropic shipped https://claude.com/blog/claude-managed-agents April 8. This PR adds support for it!

Add tracing wrappers for beta agents, sessions, and session events across sync and async clients. Capture request input, result metadata, streamed usage, and tool spans for managed-agent tool events.

Add VCR regression coverage for agent creation, session creation, and session event send/stream flows.

py/src/braintrust/integrations/anthropic/tracing.py is getting very unwieldy. I have a TODO to go and refactor this.

resolves #259

Add tracing wrappers for beta agents, sessions, and session events
across sync and async clients. Capture request input, result metadata,
streamed usage, and tool spans for managed-agent tool events.

Add VCR regression coverage for agent creation, session creation, and
session event send/stream flows.
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit e03c318 into main Apr 14, 2026
64 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-feat-anthropic-managed-agents-tracing branch April 14, 2026 13:19
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request Apr 14, 2026
Includes:
- #247
- #258
- #255
- #253
- #252
- #261
- #265
- #264
- #267
- #268
- #270
- #271
- #275
- #274
- #79

Maybe Includes:
- #276
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.

[BOT ISSUE] Anthropic: Managed Agents API (client.beta.agents, client.beta.sessions) not instrumented

2 participants