Building Voice Agents with Google ADK, Gemini Live, and LangSmith Tracing
- Source
- youtube.com
- Publisher
- Author
- LangChain
- Date
Context
LangChain's walkthrough shows that tracing a Gemini Live in LangSmith is mostly handled by a plugin, with one job left to the developer: recording the conversation audio, which the presenter calls the source of truth for what the customer experienced. Gemini Live is Google's native audio model. It is speech-to-speech, taking audio in and producing audio out without converting it to text in between, which the video credits for low lag and a more natural voice. LangSmith is LangChain's platform for observing and evaluating agents, and a trace is its record of everything that happened in one interaction.
The demo agent is a small terminal weather assistant built with Google's Agent Development Kit (ADK), with one tool for the time and one for the weather. Setup means importing a LangSmith plugin class from the LangSmith SDK, giving it a project name, tags, and a way to look up the conversation's thread ID, and registering it on the ADK runner. The plugin then offers two functions, one for user audio and one for agent audio, each appending a chunk to the traced recording. Capturing the user side is simple: trace each chunk as it arrives. The agent side is harder because the trace should hold only what the user actually heard. If the user cuts off a long reply, the recording should stop where the agent stopped talking, so the belongs wherever the plays sound; in the demo that was a playback callback.
The narrated trace from a short test call, in which the presenter interrupted an answer about Los Angeles to ask about Tokyo instead, shows the audio with each speaker's turns marked, a transcript built from Gemini Live's own input and output transcriptions (which the agent's configuration had to switch on), every tool call with its arguments, result and duration, events such as completed turns and the interruption, and token usage including audio tokens, which is where the cost shows up. From there the presenter says voice traces work with the same evaluation, dataset and dashboard features as text traces. This account comes from the video's captions only: the on-screen code and trace interface were not analyzed, and the LangChain documentation page the presenter follows was not part of the evidence, so exact class and function names should be checked there.
- Realtime conversational agent — An agent that processes streaming audio or visual input while a session is live.
- Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.
- agent hook — A script the harness runs automatically at a fixed point in an agent's loop — before a tool call, after an edit, on session start.
- Application — Software arranged so that a person can use it; in this course, the software around a model that accepts your request, prepares the context and shows the reply.






