Discover Plugins • AI Agent SDK
discover_plugins: Discover and register tools from entry_points.
discover_plugins
Method
</div>
This is a method of the ToolRegistry class in the registry module.
Discover and register tools from entry_points.
External packages publish a tool by registering it under the canonical `praisonai.tools` entry-point group in pyproject.toml::
[project.entry-points.”praisonai.tools”] my_tool = “my_package.tools:MyTool”
The historical `praisonaiagents.tools and praisonai.tool_sources groups are still discovered as deprecated aliases (a one-time DeprecationWarning` is emitted on first hit). The canonical group wins on a name collision, so a name is never overwritten by an alias group.
Signature
def discover_plugins() -> intReturns
ResponseField
intNumber of tools discovered
Uses
ep.loadtool_class_or_funcregistercallablelogging.warningwarnings.warnseen.addlogging.info
Used By
Source
View on GitHubpraisonaiagents/tools/registry.py at line 478