Repository navigation
feat: include tool names in telemetry result parts - #2642
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 67037d4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
chenghao-mou
approved these changes
Oct 13, 2026
Merged
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.
Ports livekit/agents#7534 so telemetry tool result parts remain readable without their matching call while retaining the call ID as the correlation key.
Adds a patch changeset for
@livekit/agents.Source diff coverage
Source diff coverage
livekit-agents/livekit/agents/telemetry/gen_ai.py: adapted toagents/src/telemetry/gen_ai.ts; translated the conditional Python mapping expansion to a conditional TypeScript object spread, preserving omission for empty tool names.tests/test_telemetry_gen_ai.py: adapted toagents/src/telemetry/gen_ai.test.ts; translated the complete response-part assertion to Vitest/TypeScript.No supporting infrastructure was missing from the target.
Validation
pnpm test agentsunder Node 22 / pnpm 11.13.1: 178 files passed, 3,013 tests passed, 5 skippedpnpm build: passed (40/40 tasks)pnpm --filter @livekit/agents lint: passed with existing warningspnpm lint: blocked by the pre-existing@typescript-eslint/no-misused-promiseserror inplugins/openai/src/ws/llm.ts:127; no lint findings in changed filesPorted from livekit/agents#7534
Original PR description
Include the available tool name in
tool_call_responseparts so results remain readable without the matching call. This is an optional extension allowed by the OTel schema; the call ID remains the correlation key.Adopts @SanjuMLGeek’s result-name addition from #7396.
Stacked on livekit/agents#7533.
Addresses AGT-3604
Request summary and agent context
Model: GPT-6-Astra
Split the proposed telemetry improvements into focused PRs that are easy to review and revert. Use general problem summaries and omit customer details.