How It Works
How to Add Built-in Tools
How to Add Custom Tools via tools.py
Tool Resolution Order
| Priority | Source | Description |
|---|---|---|
| 1 | tools.py | Recipe-local tools.py |
| 2 | Built-in | praisonaiagents built-in tools |
| 3 | Package | praisonai_tools package |
Best Practices
Prefer recipe-local tools.py for custom logic
Prefer recipe-local tools.py for custom logic
tools.py in the recipe directory wins resolution, so bundle recipe-specific tools there to keep them portable.Write clear docstrings on every tool
Write clear docstrings on every tool
The agent reads the docstring to decide when and how to call a tool. Describe the arguments and return value so calls are accurate.
List only the tools a role needs
List only the tools a role needs
Give each role the minimum tool set in
agents.yaml so the agent stays focused and avoids unintended actions.Related
Create Custom Recipes
Build a recipe from scratch
Debug Recipes
Troubleshoot tool resolution

