Discover Single File Plugins • AI Agent SDK

discover_single_file_plugins: Discover and load tools from single-file plugins.

discover_single_file_plugins

Method

</div>

This is a method of the ToolRegistry class in the registry module.

Discover and load tools from single-file plugins.

Scans default plugin directories for WordPress-style plugins:

  • ./.praisonai/plugins/ (project-level)
  • ~/.praisonai/plugins/ (user-level)

Signature

python
def discover_single_file_plugins() -> int

Returns

ResponseField int

Number of plugins loaded

Uses

  • discover_and_load_plugins
  • logging.debug
  • logging.warning

Source

View on GitHub

praisonaiagents/tools/registry.py at line 547


Related Documentation