explaingit

langchain-ai/google-adk-realtime-deepagents-example

Analysis updated 2026-05-18

24PythonAudience · developerComplexity · 4/5Setup · moderate

TLDR

A demo voice agent that talks with you live using Google's Gemini API and hands off complex questions to a background research agent that searches the web and writes a report.

Mindmap

mindmap
  root((voice research agent))
    What it does
      Real-time voice chat
      Background research
      Spoken report narration
    Tech stack
      Python
      FastAPI
      Gemini Live API
      LangChain
    Use cases
      Voice assistants
      Automated research
      Agent tracing
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a voice assistant that can be interrupted and interrupt back mid-conversation.

USE CASE 2

Let a voice agent hand off complex questions to a background research agent that searches the web and writes a report.

USE CASE 3

Trace and debug a multi-step AI agent's plan, searches, and sub-agent calls in one connected view.

What is it built with?

PythonFastAPIGoogle ADKGemini Live APILangChainLangSmith

How does it compare?

langchain-ai/google-adk-realtime-deepagents-example0311119/free_registertool18597990650-lab/multi-agent-game
Stars242424
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity4/54/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Google AI Studio API key and a Tavily search API key before it will run.

In plain English

This repository is a small demo project that shows how to build a real-time voice agent you can talk to out loud. It combines Google's ADK framework, which runs a live back and forth voice conversation using Gemini's Live API, with a separate research tool built using LangChain's deepagents. You speak into your browser's microphone, the voice agent replies out loud, and you can interrupt it mid-sentence, since the system supports barge-in. When you ask a question that needs real research rather than a quick answer, the voice agent hands the question off to a deep research tool. That tool plans out several web searches using Tavily, a search service, gathers the results, and writes up a report, all in the background while the voice agent keeps the conversation going. Once the report is ready, the voice model reads it back to you conversationally instead of just reading raw text. Every research run can optionally be traced with LangSmith, a tool for inspecting what an AI agent did step by step, showing the plan, each web search, and the final report as one connected tree you can replay later. Under the hood, a FastAPI server bridges audio between the browser and Google's live API over a WebSocket connection, converting microphone audio into a format the model expects and streaming the model's spoken replies back to the browser. A small JavaScript frontend in the browser handles capturing the microphone and playing audio back smoothly. To run it, you need a Google AI Studio key and a Tavily key, both set in a local environment file, then you install dependencies and start the server. The project is explicitly a local demo: it has no login system, sessions are only kept in memory, and the author notes that authentication, encryption, and a proper session store would need to be added before running it somewhere public.

Copy-paste prompts

Prompt 1
How do I set up the Google API key and Tavily key to run this voice agent demo?
Prompt 2
Explain how the voice agent hands off a question to the deep research tool and gets a report back.
Prompt 3
Show me how to swap the voice model or research model used in this project.
Prompt 4
What would I need to add to make this demo safe to deploy publicly?

Frequently asked questions

What is google-adk-realtime-deepagents-example?

A demo voice agent that talks with you live using Google's Gemini API and hands off complex questions to a background research agent that searches the web and writes a report.

What language is google-adk-realtime-deepagents-example written in?

Mainly Python. The stack also includes Python, FastAPI, Google ADK.

How hard is google-adk-realtime-deepagents-example to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is google-adk-realtime-deepagents-example for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.