Runner

interface Runner : AutoCloseable

The Runner interface defines the contract for running agents.

Inheritors

Properties

Link copied to clipboard
abstract val agent: BaseAgent
Link copied to clipboard
abstract val appName: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract override fun close()

Releases resources held by this runner, such as its plugins and the toolsets its agents own.

Link copied to clipboard
open suspend fun rewindAsync(userId: String, sessionId: String, rewindBeforeInvocationId: String)

Rewinds the session to before the specified invocation.

Link copied to clipboard
abstract fun run(userId: String, sessionId: String, newMessage: Content, runConfig: RunConfig? = null): Iterator<Event>

Sync interface for local testing and convenience purpose.

Link copied to clipboard
abstract fun runAsync(userId: String, sessionId: String, invocationId: String? = null, newMessage: Content? = null, stateDelta: Map<String, Any>? = null, runConfig: RunConfig? = null): ERROR CLASS: Symbol not found for Flow<com/google/adk/kt/events/Event>

Main entry method to run the agent in this runner asynchronously.