InMemoryRunner
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.
appName is used as given, whereas the App-based constructor validates it against the App.appName grammar. Resumability, compaction and context caching are configurable only through an App.
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.