Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
PluginRegistry
Defined in the plugins module.
Rust AI Agent SDK
Plugin registry for managing loaded plugins
Fields
| Name | Type | Description |
|---|
plugins | HashMap<String | - |
enabled | HashMap<String | - |
Methods
new
Create a new plugin registry
register
fn register(&mut self, metadata: PluginMetadata) -> ()
Register a plugin
Parameters:
| Name | Type |
|---|
metadata | PluginMetadata |
get
fn get(&self, name: &str) -> Option<&PluginMetadata>
Get plugin metadata by name
Parameters:
has
fn has(&self, name: &str) -> bool
Check if plugin is registered
Parameters:
is_enabled
fn is_enabled(&self, name: &str) -> bool
Check if plugin is enabled
Parameters:
enable
fn enable(&mut self, name: &str) -> ()
Enable a plugin
Parameters:
disable
fn disable(&mut self, name: &str) -> ()
Disable a plugin
Parameters:
list
fn list(&self) -> Vec<&str>
List all registered plugins
list_enabled
fn list_enabled(&self) -> Vec<&str>
List enabled plugins
len
Get plugin count
is_empty
fn is_empty(&self) -> bool
Check if registry is empty
Source
View on GitHub
praisonai/src/parity/plugins.rs at line 445