Rebase onto upstream (a4d95fd) #12

Closed
wylab wants to merge 144 commits from rebase-onto-upstream into main
Showing only changes of commit a4fcdf8804 - Show all commits
+14
View File
@@ -102,6 +102,13 @@ class AgentLoop:
def _register_default_tools(self) -> None:
"""Register the default set of tools."""
# Import native tools
from nanobot.agent.tools.anthropic import (
BashTool20250124,
EditTool20250728,
ComputerTool20251124,
)
# File tools (restrict to workspace if configured)
allowed_dir = self.workspace if self.restrict_to_workspace else None
self.tools.register(ReadFileTool(allowed_dir=allowed_dir))
@@ -133,6 +140,13 @@ class AgentLoop:
if self.cron_service:
self.tools.register(CronTool(self.cron_service))
# Register native Anthropic tools
self.tools.register(BashTool20250124())
self.tools.register(EditTool20250728())
self.tools.register(ComputerTool20251124())
logger.info("Registered native Anthropic tools: bash, text_editor, computer")
async def run(self) -> None:
"""Run the agent loop, processing messages from the bus."""
self._running = True