Understanding Tool Discovery
PraisonAI automatically discovers tools from~/.praisonai/tools/. Any .py file you place there will be loaded and its functions become available as tools.
How to Add Tools from Local Files (Recommended)
Why Packages Need Wrapper Tools
Runningpraisonai tools add pandas will show:
- Type hints for parameters
- Docstrings with Args section
- JSON-serializable return values
How to Add Tools from Local Files
How to Add Tools from GitHub
Configuration File
Tools sources are stored in~/.praisonai/tools_sources.yaml:
Key Concept
Packages vs Tools: When you add a package likepandas, you’re registering it as a source. To use it with agents, you need to create wrapper functions that expose specific functionality as tools with proper docstrings and type hints.
