ENFR
8news

Tech • IA • Crypto

TodayShortsTop StoriesTopicsAll videosYT channelsCryptoArchivesFavorites

Voice Agent Observability with LangSmith

8/10
GoogleGoogle for DevelopersJuly 31, 2026 at 04:22 PM7:35
Audio player
0:00 / 0:00

TL;DR

A new integration between Google’s Gemini Live voice model and LangSmith enables detailed tracing, evaluation, and cost analysis for real-time voice agents.

KEY POINTS

Rise of low-latency voice AI

Gemini Live, Google’s native speech-to-speech model, processes audio directly without converting it to text. This architecture reduces latency and allows responses to sound more natural and expressive. The approach marks a shift toward more human-like conversational systems in customer-facing applications.

From prototype to production

Building a functional voice agent is only an initial step; deploying it safely requires visibility into behavior under real-world conditions. Developers need tools to monitor performance, debug failures, and test edge cases. Without this observability layer, voice systems risk unpredictable outputs and poor user experiences.

LangSmith as observability layer

LangSmith, developed by LangChain, provides tracing and evaluation tools specifically for AI agents. Its integration with Google’s Agent Development Kit (ADK) allows developers to capture detailed execution data, enabling analysis similar to logging systems used in traditional software engineering.

Simple agent, complex insights

A demonstration agent with basic capabilities—retrieving time and weather—illustrates the system. Despite its simplicity, the agent uses structured prompts, tool calling, and audio streaming pipelines. This highlights how even minimal voice assistants involve multiple coordinated components behind the scenes.

Full conversation tracing

The integration records both user and agent audio, alongside transcripts generated by Gemini Live. Visual timelines distinguish between user speech and agent responses, while logs capture events such as interruptions and turn completions. This provides a complete, replayable record of interactions.

Tool usage and performance metrics

Each tool call is logged with arguments, outputs, and execution time. This allows developers to identify bottlenecks or incorrect tool usage. Such transparency is critical for improving reliability, especially in agents that depend on external data sources.

Handling real-world interruptions

Special care is required to capture only the audio actually heard by users. If a user interrupts a response, the system trims the recorded output accordingly. This ensures that traces reflect real user experience rather than the model’s full, potentially unused output.

Cost and token visibility

The system provides detailed usage metadata, including token consumption for both text and audio. This enables teams to track operational costs and optimize performance, an increasingly important factor as multimodal AI deployments scale.

Enabling evaluation workflows

Once traces are collected, they can be used for dataset creation, automated evaluations, annotation pipelines, and dashboards. This transforms raw interaction data into actionable insights for continuous improvement.

CONCLUSION

The integration of Gemini Live with LangSmith signals a maturing ecosystem for voice AI, where performance, transparency, and cost control become as critical as model capability.

Full transcript

More from Google