Skip to content

feat: include tool names in telemetry result parts - #2642

Merged
chenghao-mou merged 1 commit into
mainfrom
seabird-parasols-xxxiv
Oct 13, 2026
Merged

chenghao-mou merged 1 commit into
mainfrom
seabird-parasols-xxxiv

Conversation

@rosetta-livekit-bot

@rosetta-livekit-bot rosetta-livekit-bot Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

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 to agents/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 to agents/src/telemetry/gen_ai.test.ts; translated the complete response-part assertion to Vitest/TypeScript.
  • Not applicable: none. Every source file with a target counterpart was ported.

No supporting infrastructure was missing from the target.

Validation

  • pnpm test agents under Node 22 / pnpm 11.13.1: 178 files passed, 3,013 tests passed, 5 skipped
  • pnpm build: passed (40/40 tasks)
  • pnpm --filter @livekit/agents lint: passed with existing warnings
  • pnpm lint: blocked by the pre-existing @typescript-eslint/no-misused-promises error in plugins/openai/src/ws/llm.ts:127; no lint findings in changed files

Ported from livekit/agents#7534

Original PR description

Include the available tool name in tool_call_response parts 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.

@rosetta-livekit-bot
rosetta-livekit-bot Bot requested a review from a team as a code owner October 4, 2026 20:47
@changeset-bot

changeset-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 67037d4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 39 packages
Name Type
@livekit/agents Patch
@livekit/agents-plugin-anam Patch
@livekit/agents-plugin-anthropic Patch
@livekit/agents-plugin-assemblyai Patch
@livekit/agents-plugin-azure Patch
@livekit/agents-plugin-baseten Patch
@livekit/agents-plugin-bey Patch
@livekit/agents-plugin-cartesia Patch
@livekit/agents-plugin-cerebras Patch
@livekit/agents-plugin-deepgram Patch
@livekit/agents-plugin-did Patch
@livekit/agents-plugin-elevenlabs Patch
@livekit/agents-plugin-fishaudio Patch
@livekit/agents-plugin-google Patch
@livekit/agents-plugin-hume Patch
@livekit/agents-plugin-inworld Patch
@livekit/agents-plugin-krisp Patch
@livekit/agents-plugin-lemonslice Patch
@livekit/agents-plugin-liveavatar Patch
@livekit/agents-plugin-livekit Patch
@livekit/agents-plugin-meta Patch
@livekit/agents-plugin-minimax Patch
@livekit/agents-plugin-mistral Patch
@livekit/agents-plugin-mistralai Patch
@livekit/agents-plugin-neuphonic Patch
@livekit/agents-plugin-openai Patch
@livekit/agents-plugin-perplexity Patch
@livekit/agents-plugin-phonic Patch
@livekit/agents-plugin-protoface Patch
@livekit/agents-plugin-resemble Patch
@livekit/agents-plugin-rime Patch
@livekit/agents-plugin-runway Patch
@livekit/agents-plugin-sarvam Patch
@livekit/agents-plugin-silero Patch
@livekit/agents-plugin-soniox Patch
@livekit/agents-plugin-tavus Patch
@livekit/agents-plugins-test Patch
@livekit/agents-plugin-trugen Patch
@livekit/agents-plugin-xai Patch

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

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@chenghao-mou
chenghao-mou merged commit 540837b into main Oct 13, 2026
10 checks passed
@chenghao-mou
chenghao-mou deleted the seabird-parasols-xxxiv branch October 13, 2026 10:55
@github-actions github-actions Bot mentioned this pull request Oct 13, 2026
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.

1 participant