Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
Merge PR #3017: feat(tool): improve file editing and add notebook tool
Xubin Rene0b9edf98521
diff --cc nanobot/agent/loop.pyindex 56a662add,56d79f3f9..0c33bc5c8--- a/nanobot/agent/loop.py+++ b/nanobot/agent/loop.py@@@ -250,21 -236,18 +251,22 @@@ class AgentLoopself.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(- working_dir=str(self.workspace),- timeout=self.exec_config.timeout,- restrict_to_workspace=self.restrict_to_workspace,- sandbox=self.exec_config.sandbox,- path_append=self.exec_config.path_append,- allowed_env_keys=self.exec_config.allowed_env_keys,- ))+ self.tools.register(+ ExecTool(+ working_dir=str(self.workspace),+ timeout=self.exec_config.timeout,+ restrict_to_workspace=self.restrict_to_workspace,+ sandbox=self.exec_config.sandbox,+ path_append=self.exec_config.path_append,+ allowed_env_keys=self.exec_config.allowed_env_keys,+ )+ )if self.web_config.enable:- self.tools.register(WebSearchTool(config=self.web_config.search, proxy=self.web_config.proxy))+ self.tools.register(+ WebSearchTool(config=self.web_config.search, proxy=self.web_config.proxy)+ )self.tools.register(WebFetchTool(proxy=self.web_config.proxy))self.tools.register(MessageTool(send_callback=self.bus.publish_outbound))self.tools.register(SpawnTool(manager=self.subagents))