ReplRunner
A runner for Kotlin agents that provides a simple REPL for debugging.
Types
Link copied to clipboard
data class PendingInputRequest(val callId: String, val toolName: String, val options: List<String>?)
A paused long-running call awaiting a user-provided response (not a confirmation).
Properties
Functions
Link copied to clipboard
open suspend override fun rewindAsync(userId: String, sessionId: String, rewindBeforeInvocationId: String)
Rewinds the session as Runner.rewindAsync describes, then flushes sessionService so the rewind is persisted.
Link copied to clipboard
open override fun runLive(userId: String, sessionId: String, liveRequestQueue: LiveRequestQueue, runConfig: RunConfig? = null): Flow<Event>
Runs the agent live as Runner.runLive describes. Flushes sessionService once per turn, when the turn completes or hands over to another agent or step, and when the run completes or fails; each flush is bounded, so a stuck session service fails the run instead of hanging it.