docs(langsmith): update voice tracing guides for the langsmith.integrations SDK#4636
Draft
Caroline di Vittorio (carolinedivittorio) wants to merge 1 commit into
Draft
docs(langsmith): update voice tracing guides for the langsmith.integrations SDK#4636Caroline di Vittorio (carolinedivittorio) wants to merge 1 commit into
Caroline di Vittorio (carolinedivittorio) wants to merge 1 commit into
Conversation
6ba6b31 to
3d909b8
Compare
…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.
3d909b8 to
43dc0bf
Compare
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-voicet-1782781101-fbe4599.mintlify.app Important Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
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.
Why
The voice tracing guides told customers to copy a span-processor
.pyfile from the voice-demo repo and wire OpenTelemetry exporter env vars by hand. These integrations are now packaged underlangsmith.integrations(langchain-ai/langsmith-sdk#3107), so the guides should show what a customer installs and imports.Each guide follows the same shape: install, set environment variables, set up tracing, record the conversation audio. The integrations self-configure their LangSmith export from
LANGSMITH_*, so the manualOTEL_EXPORTER_OTLP_*variables and the download-the-processor steps are gone.What changed
trace-with-pipecat):langsmith[pipecat]+configure_pipecat(); audio via Pipecat'sAudioBufferProcessor.trace-with-livekit):langsmith[livekit]+configure_livekit().trace-openai-realtime): onelangsmith[openai-realtime]install, then a section for each way to build the agent:wrap_realtime(full control).wrap_realtime_session(the SDK owns the turn/tool loop).Both import from
langsmith.integrations.openai_realtime.trace-gemini-live):langsmith[google-adk-live]+LangSmithLivePlugin(fromlangsmith.integrations.google_adk_live) onRunner.run_live.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
langsmith[openai-realtime](→langsmith.integrations.openai_realtime) andlangsmith[google-adk-live](→langsmith.integrations.google_adk_live).make lint_prosepasses on all changed files.make broken-linkscould not run locally (mintCLI not installed); internal link targets verified by hand.Authored with the help of an AI agent.