Merge PR #3017: feat(tool): improve file editing and add notebook tool

feat(tool): improve file editing and add notebook tool
This commit is contained in:
Xubin Ren authored and GitHub committed 2026-04-11 18:02:25 +08:00
commit e0b9edf985
9 files changed
+1637 -40

No files matched your search

+2
View File
@@ -23,6 +23,7 @@ from nanobot.agent.tools.cron import CronTool
from nanobot.agent.skills import BUILTIN_SKILLS_DIR
from nanobot.agent.tools.filesystem import EditFileTool, ListDirTool, ReadFileTool, WriteFileTool
from nanobot.agent.tools.message import MessageTool
from nanobot.agent.tools.notebook import NotebookEditTool
from nanobot.agent.tools.registry import ToolRegistry
from nanobot.agent.tools.search import GlobTool, GrepTool
from nanobot.agent.tools.shell import ExecTool
@@ -250,6 +251,7 @@ class AgentLoop:
self.tools.register(cls(workspace=self.workspace, allowed_dir=allowed_dir))
for cls in (GlobTool, GrepTool):
self.tools.register(cls(workspace=self.workspace, allowed_dir=allowed_dir))
self.tools.register(NotebookEditTool(workspace=self.workspace, allowed_dir=allowed_dir))
if self.exec_config.enable:
self.tools.register(
ExecTool(