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
4bfd861 to
1b49150
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.
1b49150 to
6d70fd7
Compare
Contributor
|
Mintlify preview branch generated: 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): |
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.This PR rewrites the voice guides for that end state:
pip install "langsmith[<framework>]"plus a one-lineconfigure_*/wrap_*call (or, for ADK Live, a plugin). The integrations self-configure their LangSmith export fromLANGSMITH_*, so the manualOTEL_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
trace-with-pipecat):langsmith[pipecat]+configure_pipecat(); audio via Pipecat'sAudioBufferProcessor.trace-with-livekit):langsmith[livekit]+configure_livekit().trace-openai-realtime): now documents both ways to build a Realtime agent, as separate sections with a "choose an approach" comparison:langsmith[openai]+wrap_realtime(full control, fewer deps).langsmith[openai-agents]+wrap_realtime_session(the SDK owns the turn/tool loop).trace-gemini-live):langsmith[google-adk]+LangSmithLivePluginonRunner.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.integrations.{pipecat,livekit,openai,openai_agents_sdk,google_adk}and thelangsmith[pipecat|livekit|openai|openai-agents|google-adk]extras.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.