Runner
The Runner interface defines the contract for running agents.
Inheritors
Properties
Functions
Link copied to clipboard
Rewinds the session to before the specified invocation.
Link copied to clipboard
open fun runLive(userId: String, sessionId: String, liveRequestQueue: LiveRequestQueue, runConfig: RunConfig? = null): Flow<Event>
Runs the agent over a live (bidirectional streaming) connection and returns a cold Flow of the conversation's Events, delivering inline audio, video, and image data to the caller without storing it in the session. Closing the caller-owned liveRequestQueue ends the run, and RunConfig.maxLlmCalls does not apply to a live run. A Runner that does not override this fails with UnsupportedOperationException when the flow is collected.