Skip to main content

enable

Function
This function is defined in the plugins module.
Enable the plugin system. Discovers and enables plugins from default directories. This is the main entry point for using plugins.

Signature

Parameters

list
Optional list of plugin names to enable. If None, enables all discovered plugins.
dict
Optional {plugin_name: options_dict} mapping of per-plugin options (e.g. from .praisonai/config.yaml). Each enabled plugin receives its own options via on_config.

Usage

Uses

  • get_plugin_manager
  • manager.set_plugin_options
  • manager.auto_discover_plugins
  • manager.discover_entry_points
  • manager.enable
  • manager.list_plugins
  • manager.wire_into_hook_registry
  • logging.debug
  • logging.warning
  • manager.apply_plugin_options

Notes

  • Tools and guardrails work WITHOUT calling enable()
    • Only background plugins (hooks, metrics, logging) need enable()
    • Can also be enabled via PRAISONAI_PLUGINS env var
    • Can also be enabled via .praisonai/config.yaml (unified) or config.toml

Used By

Source

View on GitHub

praisonaiagents/plugins/__init__.py at line 124