# Runner

interface Runner

The Runner interface defines the contract for running agents.

#### Inheritors

AbstractRunner

## Properties

agent
Link copied to clipboard
abstract val agent: BaseAgent
appName
Link copied to clipboard
abstract val appName: String
artifactService
Link copied to clipboard
abstract val artifactService: ArtifactService?
memoryService
Link copied to clipboard
abstract val memoryService: MemoryService?
pluginManager
Link copied to clipboard
abstract val pluginManager: PluginManager
resumabilityConfig
Link copied to clipboard
abstract val resumabilityConfig: ResumabilityConfig
sessionService
Link copied to clipboard
abstract val sessionService: SessionService

## Functions

run
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.

runAsync
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): Flow<Event>

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