summaryrefslogtreecommitdiff
path: root/src/agentux/tools
diff options
context:
space:
mode:
authorClaude Code <noreply@anthropic.com>2026-11-27 20:03:34 +0530
committerClaude Code <noreply@anthropic.com>2026-11-27 20:03:34 +0530
commited0a4782a21d8e564f8956c87e022e8caef851ac (patch)
treee65d6e0d0ddc23a1b1b9948a47a53245f0716e90 /src/agentux/tools
parent95ea8c8b72d2dbb20ab860ab1505b46add280773 (diff)
Commit tracked-file changes required for a working Agentux installHEADmain
The committed provider/base.py, config.py, models.py, errors.py and tools were missing symbols (e.g. TextCallback) that agent.py imports, so a clean clone produced a broken install. Commit these so the remote's committed state is complete and cloneable. Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'src/agentux/tools')
-rw-r--r--src/agentux/tools/__init__.py20
-rw-r--r--src/agentux/tools/registry.py4
2 files changed, 24 insertions, 0 deletions
diff --git a/src/agentux/tools/__init__.py b/src/agentux/tools/__init__.py
index 03cd0f9..5637734 100644
--- a/src/agentux/tools/__init__.py
+++ b/src/agentux/tools/__init__.py
@@ -1,15 +1,35 @@
"""Built-in tools."""
from .base import BaseTool
+from .checkpoint_tool import CheckpointTool
from .filesystem import FilesystemTool
+from .git import GitTool
+from .image import ViewImageTool
+from .memory_tool import MemorySaveTool, MemorySearchTool
from .project import ProjectTool
from .registry import ToolRegistry
+from .repomap_tool import RepomapTool
+from .search import SearchTool
from .shell import ShellTool
+from .symbols import OutlineSymbolsTool
+from .todo import TodoTool
+from .web import FetchWebPageTool, WebSearchTool
__all__ = [
"BaseTool",
+ "CheckpointTool",
"FilesystemTool",
+ "FetchWebPageTool",
+ "GitTool",
+ "MemorySaveTool",
+ "MemorySearchTool",
+ "OutlineSymbolsTool",
"ProjectTool",
+ "RepomapTool",
+ "SearchTool",
"ShellTool",
+ "TodoTool",
"ToolRegistry",
+ "ViewImageTool",
+ "WebSearchTool",
]
diff --git a/src/agentux/tools/registry.py b/src/agentux/tools/registry.py
index d605136..c50bf33 100644
--- a/src/agentux/tools/registry.py
+++ b/src/agentux/tools/registry.py
@@ -25,6 +25,10 @@ class ToolRegistry:
"""Register a tool, replacing any existing tool with the same name."""
self._tools[tool.name] = tool
+ def deregister(self, name: str) -> None:
+ """Remove a tool by name. Does nothing if it is not registered."""
+ self._tools.pop(name, None)
+
def get(self, name: str) -> BaseTool:
"""Return a registered tool, or raise :class:`ToolNotFoundError`."""
tool = self._tools.get(name)