InMemoryRunner
Constructors
Link copied to clipboard
constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), plugins: List<Plugin> = emptyList())
Creates an InMemoryRunner from a root agent, its plugins, and default in-memory services.
constructor(app: App, sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), skipClosingPlugins: Boolean = false)
Creates an InMemoryRunner from an App, deriving its App.appName, App.rootAgent, App.plugins, and App.resumabilityConfig.
Types
Link copied to clipboard
class Builder
Fluent builder for InMemoryRunner, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.
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.