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

plugins
list
Optional list of plugin names to enable. If None, enables all discovered plugins.

Usage

Uses

  • get_plugin_manager
  • manager.auto_discover_plugins
  • manager.enable
  • manager.list_plugins
  • logging.debug

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.toml

Used By

Source

View on GitHub

praisonaiagents/plugins/__init__.py at line 85