From a818fff8faaa69e21b331231a23e0730fe78fe40 Mon Sep 17 00:00:00 2001 From: Re-bin Date: Tue, 24 Feb 2026 13:47:17 +0000 Subject: [PATCH] chore: trim verbose docstrings --- README.md | 2 +- nanobot/agent/tools/registry.py | 14 +------------- nanobot/agent/tools/spawn.py | 7 +------ 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 148c8f4..d2483e4 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ⚡️ Delivers core agent functionality in just **~4,000** lines of code — **99% smaller** than Clawdbot's 430k+ lines. -📏 Real-time line count: **3,897 lines** (run `bash core_agent_lines.sh` to verify anytime) +📏 Real-time line count: **3,955 lines** (run `bash core_agent_lines.sh` to verify anytime) ## 📢 News diff --git a/nanobot/agent/tools/registry.py b/nanobot/agent/tools/registry.py index 8256a59..3af4aef 100644 --- a/nanobot/agent/tools/registry.py +++ b/nanobot/agent/tools/registry.py @@ -36,19 +36,7 @@ class ToolRegistry: return [tool.to_schema() for tool in self._tools.values()] async def execute(self, name: str, params: dict[str, Any]) -> str: - """ - Execute a tool by name with given parameters. - - Args: - name: Tool name. - params: Tool parameters. - - Returns: - Tool execution result as string. - - Raises: - KeyError: If tool not found. - """ + """Execute a tool by name with given parameters.""" _HINT = "\n\n[Analyze the error above and try a different approach.]" tool = self._tools.get(name) diff --git a/nanobot/agent/tools/spawn.py b/nanobot/agent/tools/spawn.py index 5884a07..33cf8e7 100644 --- a/nanobot/agent/tools/spawn.py +++ b/nanobot/agent/tools/spawn.py @@ -9,12 +9,7 @@ if TYPE_CHECKING: class SpawnTool(Tool): - """ - Tool to spawn a subagent for background task execution. - - The subagent runs asynchronously and announces its result back - to the main agent when complete. - """ + """Tool to spawn a subagent for background task execution.""" def __init__(self, manager: "SubagentManager"): self._manager = manager