InMemoryRunner

constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService())

Creates an InMemoryRunner from a root agent 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.

This is the recommended way to configure plugins and resumability.

Parameters

skipClosingPlugins

See PluginManager.skipClosingPlugins. Set to true when the App.plugins are shared with another (parent) runner whose lifecycle owns them.


constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), pluginManager: PluginManager)

Deprecated

Configure plugins via App.plugins instead, e.g. InMemoryRunner(App(appName, agent, plugins = listOf(...))). Passing a PluginManager directly to the runner is deprecated.

Replace with

InMemoryRunner(App(appName, agent, plugins = pluginManager.plugins))

Creates an InMemoryRunner with an explicit pluginManager.


constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), resumabilityConfig: ResumabilityConfig)

Deprecated

Configure resumability via App.resumabilityConfig instead, e.g. InMemoryRunner(App(appName, agent, resumabilityConfig = ...)). Passing a ResumabilityConfig directly to the runner is deprecated.

Replace with

InMemoryRunner(App(appName, agent, resumabilityConfig = resumabilityConfig))

Creates an InMemoryRunner with an explicit resumabilityConfig.


constructor(agent: BaseAgent, appName: String = "InMemoryRunner", sessionService: SessionService = InMemorySessionService(), artifactService: ArtifactService? = InMemoryArtifactService(), memoryService: MemoryService? = InMemoryMemoryService(), pluginManager: PluginManager, resumabilityConfig: ResumabilityConfig)

Deprecated

Configure plugins and resumability via App instead, e.g. InMemoryRunner(App(appName, agent, plugins = listOf(...), resumabilityConfig = ...)). Passing them directly to the runner is deprecated.

Replace with

InMemoryRunner(App(appName, agent, plugins = pluginManager.plugins, resumabilityConfig = resumabilityConfig))

Creates an InMemoryRunner with both an explicit pluginManager and resumabilityConfig.