Jobins / agent /tools /__init__.py
Abhisingh-18's picture
Mirror of github.com/Abhisingh18/Jobins
b6c100d verified
Raw
History Blame Contribute Delete
509 Bytes
from .base import Tool, ToolResult
from .calculator import CalculatorTool
from .code_exec import CodeExecTool
from .web_search import WebSearchTool
TOOLS: dict[str, Tool] = {
t.name: t for t in (WebSearchTool(), CodeExecTool(), CalculatorTool())
}
def tool_catalog() -> str:
"""Human/LLM readable list of tools for the system prompt."""
lines = []
for t in TOOLS.values():
lines.append(f"- {t.name}: {t.description} args: {t.args_hint}")
return "\n".join(lines)