Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
Check Specific Tool
praisonai tools info shell_tool
Review Diagnostics
Doctor output shows:
- Tool availability
- Missing dependencies
- Configuration issues
- Import errors
Fix Identified Issues
Install missing packages or fix configuration based on doctor output.
Resolve Tool Name
praisonai tools resolve my_tool
Check Tool Sources
praisonai tools show-sources
Search for Tools
praisonai tools search "search"
Test Tool Directly
from my_tools import my_custom_tool
# Test with sample input
result = my_custom_tool("test query")
print(f"Result: {result}")
print(f"Type: {type(result)}")
Check Tool Signature
import inspect
sig = inspect.signature(my_custom_tool)
print(f"Parameters: {sig.parameters}")
print(f"Return annotation: {sig.return_annotation}")
Validate Docstring
print(f"Docstring: {my_custom_tool.__doc__}")
Test with Agent
from praisonaiagents import Agent
import logging
logging.basicConfig(level=logging.DEBUG)
agent = Agent(
name="tester",
tools=[my_custom_tool]
)
result = agent.start("Test the tool")
Create Registry
from praisonai.templates.tool_override import create_tool_registry_with_overrides
registry = create_tool_registry_with_overrides(include_defaults=True)
List All Tools
print("Available tools:")
for name in sorted(registry.keys()):
print(f" - {name}")
Check Specific Tool
tool_name = "shell_tool"
if tool_name in registry:
tool = registry[tool_name]
print(f"Found: {tool}")
print(f"Module: {tool.__module__}")
else:
print(f"Tool '{tool_name}' not found")
| Issue | Cause | Solution |
|---|
| Tool not found | Not in registry | Add to tools list or tools_sources |
| Import error | Missing dependency | Install required package |
| Type error | Wrong parameter types | Add proper type hints |
| No docstring | Missing documentation | Add docstring with Args section |
| Not serializable | Complex return type | Return dict/list/str instead |
Debug CLI Commands
praisonai tools doctor # Run diagnostics
praisonai tools list # List all tools
praisonai tools info <name> # Get tool details
praisonai tools resolve <name> # Resolve tool location
praisonai tools search <query> # Search for tools
praisonai tools show-sources # Show tool sources
praisonai tools discover # Discover from packages