PluginManager
class PluginManager(val plugins: List<Plugin> = emptyList(), val skipClosingPlugins: Boolean = false) : AutoCloseable
Manages the pre-aggregation of typed functional callbacks.
Properties
Link copied to clipboard
When true, close becomes a no-op so that plugins owned by another (parent) manager are not torn down by this sub-manager. Intended for cases where a sub-runner shares the parent runner's Plugin instances (e.g. com.google.adk.kt.tools.AgentTool propagating parent plugins to the wrapped agent's runner): the sub-runner must not close plugins it does not own.