| """ |
| Frox AI — Tools |
| |
| Importing this package registers every built-in tool into |
| `tools.registry.registry`. Individual tool modules can still be |
| imported directly (e.g. `from tools.calculator import evaluate`) for |
| unit testing without pulling in the others' dependencies (httpx, |
| pdfplumber, etc.) — this __init__ is the only place that imports all |
| of them together, and only the inference engine / API layer needs it. |
| |
| Usage: |
| import tools # registers everything |
| from tools.registry import registry, ToolContext |
| |
| ctx = ToolContext(engine=my_engine, plan="pro") |
| result = await registry.execute("calculator", {"expression": "2+2"}, ctx) |
| """ |
| from __future__ import annotations |
|
|
| from tools.registry import registry, tool, ToolContext, ToolResult |
|
|
| |
| |
| from tools import calculator |
| from tools import memory |
| from tools import knowledge_base |
| from tools import web_search |
| from tools import web_browser |
| from tools import file_analysis |
| from tools import image_analysis |
| from tools import youtube_tools |
| from tools import code_interpreter |
|
|
| __all__ = ["registry", "tool", "ToolContext", "ToolResult"] |
|
|