PluginManager
Defined in the plugins module.Rust AI Agent SDK Manages plugin registration and execution.
Fields
| Name | Type | Description |
|---|---|---|
plugins | HashMap<String | Registered plugins |
enabled | HashMap<String | Enabled plugins |
hook_map | HashMap<PluginHook | Hook to plugin mapping |
Methods
new
register
| Name | Type |
|---|---|
plugin | impl Plugin + 'static |
enable
| Name | Type |
|---|---|
name | &str |
disable
| Name | Type |
|---|---|
name | &str |
is_enabled
| Name | Type |
|---|---|
name | &str |
list_plugins
get
| Name | Type |
|---|---|
name | &str |
execute_hook
| Name | Type |
|---|---|
hook | PluginHook |
data | serde_json::Value |
get_hook_plugins
| Name | Type |
|---|---|
hook | PluginHook |
len
is_empty
enabled_count
Source
View on GitHub
praisonai/src/plugins/mod.rs at line 258
