# PluginManager

class PluginManager(val plugins: List<Plugin> = emptyList())

Manages the pre-aggregation of typed functional callbacks.

## Constructors

PluginManager
Link copied to clipboard
constructor(plugins: List<Plugin> = emptyList())

## Types

Companion
Link copied to clipboard
object Companion

## Properties

afterAgentCallbacks
Link copied to clipboard
val afterAgentCallbacks: List<AfterAgentCallback>
afterModelCallbacks
Link copied to clipboard
val afterModelCallbacks: List<AfterModelCallback>
afterRunCallbacks
Link copied to clipboard
val afterRunCallbacks: List<AfterRunCallback>
afterToolCallbacks
Link copied to clipboard
val afterToolCallbacks: List<AfterToolCallback>
beforeAgentCallbacks
Link copied to clipboard
val beforeAgentCallbacks: List<BeforeAgentCallback>
beforeModelCallbacks
Link copied to clipboard
val beforeModelCallbacks: List<BeforeModelCallback>
beforeRunCallbacks
Link copied to clipboard
val beforeRunCallbacks: List<BeforeRunCallback>
beforeToolCallbacks
Link copied to clipboard
val beforeToolCallbacks: List<BeforeToolCallback>
onEventCallbacks
Link copied to clipboard
val onEventCallbacks: List<OnEventCallback>
onModelErrorCallbacks
Link copied to clipboard
val onModelErrorCallbacks: List<OnModelErrorCallback>
onToolErrorCallbacks
Link copied to clipboard
val onToolErrorCallbacks: List<OnToolErrorCallback>
onUserMessageCallbacks
Link copied to clipboard
val onUserMessageCallbacks: List<OnUserMessageCallback>
plugins
Link copied to clipboard
val plugins: List<Plugin>

The list of registered plugins managed by this instance.

## Functions

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