# ReplRunner

open class ReplRunner(val agent: BaseAgent) : InMemoryRunner

A runner for Kotlin agents that provides a simple REPL for debugging.

## Constructors

ReplRunner
Link copied to clipboard
constructor(agent: BaseAgent)

## Types

Companion
Link copied to clipboard
object Companion

## Properties

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

## Functions

applyStateDelta
Link copied to clipboard
fun applyStateDelta(event: Event, stateDelta: Map<String, Any>?)

Applies the provided stateDelta to the given event.

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

Sync interface for local testing and convenience purpose.

runAsync
Link copied to clipboard
open override fun runAsync(userId: String, sessionId: String, invocationId: String?, newMessage: Content?, stateDelta: Map<String, Any>?, runConfig: RunConfig?): Flow<Event>

Main entry method to run the agent in this runner.

start
Link copied to clipboard
fun start()