Skip to main content

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

NameTypeDescription
pluginsHashMap<String-
enabledHashMap<String-

Methods

new

fn new() -> Self
Create a new plugin registry

register

fn register(&mut self, metadata: PluginMetadata) -> ()
Register a plugin Parameters:
NameType
metadataPluginMetadata

get

fn get(&self, name: &str) -> Option<&PluginMetadata>
Get plugin metadata by name Parameters:
NameType
name&str

has

fn has(&self, name: &str) -> bool
Check if plugin is registered Parameters:
NameType
name&str

is_enabled

fn is_enabled(&self, name: &str) -> bool
Check if plugin is enabled Parameters:
NameType
name&str

enable

fn enable(&mut self, name: &str) -> ()
Enable a plugin Parameters:
NameType
name&str

disable

fn disable(&mut self, name: &str) -> ()
Disable a plugin Parameters:
NameType
name&str

list

fn list(&self) -> Vec<&str>
List all registered plugins

list_enabled

fn list_enabled(&self) -> Vec<&str>
List enabled plugins

len

fn len(&self) -> usize
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

Rust Plugins