Sessions for live agents¶
Supported in ADKPython v0.1.0
A live agent is a connection that stays open while the user talks, listens, interrupts, and falls silent.
Live agents use the same Session, SessionService, and state model as any ADK agent, all
covered in Conversational context. What a live session adds is a
connection: one that can drop, time out, or outlive the model's context window. For what
comes back out of that connection, see Events; for the settings that shape
it, see Configuration.
Set up a live application¶
A live application has two kinds of objects: ones you create once at startup and reuse for every session, and ones you create fresh per session.
Create once, reuse everywhere:
Agent: your model, tools, and instructions. Stateless and reusable.SessionService: stores conversation history so sessions survive reconnects and restarts.Runner: the runtime that drives the agent and yields events.