PluginManager

class PluginManager(val plugins: List<Plugin> = emptyList(), val skipClosingPlugins: Boolean = false)

Manages the pre-aggregation of typed functional callbacks.

Constructors

Link copied to clipboard
constructor(plugins: List<Plugin> = emptyList(), skipClosingPlugins: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The list of registered plugins managed by this instance.

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.

Functions

Link copied to clipboard
suspend fun close()
Link copied to clipboard
fun getPlugin(pluginName: String): Plugin?