Runner
The Runner interface defines the contract for running agents.
Inheritors
Properties
Functions
Rewinds the session to before the specified invocation.
Runs the root agent or node, such as a workflow, live and returns a cold Flow of the run's Events, delivering a live agent's inline audio, video, and image data to the caller without storing it in the session. An agent talks over a live (bidirectional streaming) connection until the caller closes liveRequestQueue or the model ends the session, with no RunConfig.maxLlmCalls limit; a node starts with no input and runs until it ends. The returned flow fails with UnsupportedOperationException for a task agent inside a node root that delegates to task sub-agents (before anything connects when the root's graph holds it, otherwise when it starts), for a graph agent node's transfer unless the node is single-turn, and for a Runner that does not override this.