InMemoryRunner
Creates an InMemoryRunner from a root agent and default in-memory services.
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
See PluginManager.skipClosingPlugins. Set to true when the App.plugins are shared with another (parent) runner whose lifecycle owns them.
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.
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.
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.