Module llm_agent

Module llm_agent 

Source
Expand description

LlmAgent — concrete Agent implementation with builder pattern.

The builder freezes tools at build() time (respecting Gemini Live’s constraint that tools are fixed at session setup). Auto-registers transfer_to_{name} tools for each sub-agent.

The event loop subscribes to SessionEvents, auto-dispatches tool calls, detects transfers via __transfer_to signal in tool results, and handles streaming/input-streaming tools.

Structs§

LlmAgent
Concrete Agent implementation that runs a Gemini Live event loop.
LlmAgentBuilder
Builder for LlmAgent – fluent API for declaring tools, middleware, sub-agents.