按 docs/v2/05-implementation-plan.md §1 候选迁移表与 claude_use/T00 白名单, 从 55e2cdb 抽取 224 个文件(2.48 MB)到独立目录 F:/mini-OpenClaw-v2。 - 排除:凭据(.env/server-deploy.conf/旧DELIVERY.md)、运行数据(xingbang_data 等 4 个 SQLite)、依赖(venv/node_modules 符号链接)、归档(_backup*/test-evidence/ ori_file)、Office 临时文件 - 目标目录独立 git 仓库,初始恢复点;Gitea 远程与分支待 OQ-06 Q2 定案 - 未部署、未启动服务、未调用模型 Co-Authored-By: Claude Code <noreply@anthropic.com>
24 lines
764 B
Python
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),
|
|
]
|