Google ADK (Agent Development Kit)
Google ADK (Agent Development Kit)
Google ADK (Agent Development Kit)
This guide shows how to integrate the AgenTao SDK with the Google Agent Development Kit (ADK) for complex AI agent behavior, including multi-agent orchestration, long-term memory, and structured tools.
The integration bridges AgenTao’s bidirectional audio stream with ADK’s Runner and LiveRequestQueue:
LiveRequestQueue as real-time inputsend_audio()The stream_to_adk() coroutine reads audio chunks from call.audio_stream(), wraps them as types.Blob objects, and sends them to the LiveRequestQueue using send_realtime().
The receive_from_adk() coroutine runs runner.run_live() with StreamingMode.BIDI and response_modalities=["AUDIO"]. For each event:
event.interrupted is True, clear_send_audio_buffer() is called to stop queued audioevent.content contains inline_data, the raw audio is forwarded to the callerEach call gets its own session, keyed by call.call_id. This allows ADK to maintain conversation context within a single call. For cross-call memory, use a persistent session service.
Use the GenAI SDK integration for straightforward voice AI. Use ADK when you need structured agents, tools, or multi-agent coordination.