Files
mini-openclaw/backend/tools/__init__.py
NathanAlex7 42ce992a0f chore: mini-openclaw 初始版本
Next.js 前端 + FastAPI/LangChain 后端透明 agent平台
- 含 .gitignore, 敏感文件(sessions数据/.env/venv等)已排除
- 待后续添加 trajectory 自进化机制
2026-09-01 16:40:10 +08:00

24 lines
764 B
Python

"""Core Tools factory — returns all 5 tools for the Agent."""
from pathlib import Path
from typing import List
from langchain_core.tools import BaseTool
from .terminal_tool import create_terminal_tool
from .python_repl_tool import create_python_repl_tool
from .fetch_url_tool import create_fetch_url_tool
from .read_file_tool import create_read_file_tool
from .search_knowledge_tool import create_search_knowledge_tool
def get_all_tools(base_dir: Path) -> List[BaseTool]:
"""Create and return all 5 core tools, sandboxed to base_dir."""
return [
create_terminal_tool(base_dir),
create_python_repl_tool(),
create_fetch_url_tool(),
create_read_file_tool(base_dir),
create_search_knowledge_tool(base_dir),
]