Skip to content

chore(weave): Enable capturing of tool calls.#6248

Open
chance-wnb wants to merge 1 commit intochance/openai_realtime_apifrom
chance/realtime_tool_call
Open

chore(weave): Enable capturing of tool calls.#6248
chance-wnb wants to merge 1 commit intochance/openai_realtime_apifrom
chance/realtime_tool_call

Conversation

@chance-wnb
Copy link
Contributor

@chance-wnb chance-wnb commented Mar 3, 2026

Description

Adds tool call tracing support to the OpenAI Realtime agent integration. The adapter now listens for agent_tool_start and agent_tool_end events to create Weave traces for tool executions, tracking them with a realtime.tool.<name> operation name and tool kind attribute.

The implementation includes proper lifecycle management, ensuring tool calls are closed with appropriate status when the session is detached or disconnected.

Example screenshot

image.png

Testing

-Manually tested.

-Unit tests TBD in upper stack PRs.

Copy link
Contributor Author

chance-wnb commented Mar 3, 2026

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.

@chance-wnb chance-wnb force-pushed the chance/realtime_tool_call branch from 660248e to 69aea0d Compare March 3, 2026 01:17
@wandbot-3000
Copy link

wandbot-3000 bot commented Mar 3, 2026

@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@chance-wnb chance-wnb marked this pull request as ready for review March 3, 2026 02:10
@chance-wnb chance-wnb requested a review from a team as a code owner March 3, 2026 02:10
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.

2 participants