Skip to content

docs(langsmith): update voice tracing guides for the langsmith.integrations SDK#4636

Draft
Caroline di Vittorio (carolinedivittorio) wants to merge 1 commit into
mainfrom
voice-tracing-sdk
Draft

docs(langsmith): update voice tracing guides for the langsmith.integrations SDK#4636
Caroline di Vittorio (carolinedivittorio) wants to merge 1 commit into
mainfrom
voice-tracing-sdk

Conversation

@carolinedivittorio

@carolinedivittorio Caroline di Vittorio (carolinedivittorio) commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Why

The voice tracing guides told customers to copy a span-processor .py file from the voice-demo repo and wire OpenTelemetry exporter env vars by hand. These integrations are now packaged under langsmith.integrations (langchain-ai/langsmith-sdk#3107), so the guides should show what a customer installs and imports.

This PR rewrites the voice guides for that end state: pip install "langsmith[<framework>]" plus a one-line configure_* / wrap_* call (or, for ADK Live, a plugin). The integrations self-configure their LangSmith export from LANGSMITH_*, so the manual OTEL_EXPORTER_OTLP_* variables and the download-the-processor steps are gone.

Each guide follows the same shape: install, set environment variables, set up tracing, record the conversation audio.

What changed

  • Pipecat (trace-with-pipecat): langsmith[pipecat] + configure_pipecat(); audio via Pipecat's AudioBufferProcessor.
  • LiveKit (trace-with-livekit): langsmith[livekit] + configure_livekit().
  • OpenAI Realtime (trace-openai-realtime): now documents both ways to build a Realtime agent, as separate sections with a "choose an approach" comparison:
    • Raw connectionlangsmith[openai] + wrap_realtime (full control, fewer deps).
    • OpenAI Agents SDKlangsmith[openai-agents] + wrap_realtime_session (the SDK owns the turn/tool loop).
  • Gemini Live (trace-gemini-live): langsmith[google-adk] + LangSmithLivePlugin on Runner.run_live.
  • Google ADK (trace-with-google-adk): unchanged batch guide, plus a note linking to Gemini Live for the live model.

All voice-demo links removed in favor of the packaged-SDK end state.

Review notes

  • Assumes the public API as it lands in langsmith-sdk#3107: langsmith.integrations.{pipecat,livekit,openai,openai_agents_sdk,google_adk} and the langsmith[pipecat|livekit|openai|openai-agents|google-adk] extras.
  • make lint_prose passes on all changed files. make broken-links could not run locally (mint CLI not installed); internal link targets verified by hand.

Authored with the help of an AI agent.

@github-actions github-actions Bot added internal langsmith For docs changes to LangSmith labels Jun 26, 2026
@carolinedivittorio Caroline di Vittorio (carolinedivittorio) force-pushed the voice-tracing-sdk branch 3 times, most recently from 4bfd861 to 1b49150 Compare June 26, 2026 22:36
…ations SDK

Rewrite the voice tracing guides for the packaged LangSmith integrations, so the
snippets reflect what a customer installs and imports rather than a copied
span-processor file.

- Pipecat: langsmith[pipecat] + configure_pipecat(); AudioBufferProcessor +
  attach_audio_buffer for recording.
- LiveKit: langsmith[livekit] + configure_livekit().
- OpenAI Realtime: langsmith[openai] + wrap_realtime() connection proxy.
- Gemini Live: langsmith[google-adk] + LangSmithLivePlugin on Runner.run_live,
  replacing the hand-rolled RunTree/event_span quickstart.
- Google ADK: keep the configure_google_adk batch guide; link to Gemini Live for
  the live voice model.

Clarify that the within-trace turn span is a grouping run, not a thread-level
LangSmith turn (a separate trace per turn), and reconcile the voice fundamentals
guidance. Drop the manual OTLP env vars and download-the-processor steps.
@github-actions

Copy link
Copy Markdown
Contributor

Mintlify preview branch generated: preview-voicet-1782516343-ea11aab

Site preview: https://langchain-5e9cc07a-preview-voicet-1782516343-ea11aab.mintlify.app

Important

Preview links may take a few minutes to start working while the deployment finishes.

Changed documentation pages (preview deep links):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal langsmith For docs changes to LangSmith

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants