Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Remove find from the default list of bash tools, closes #1113

davidmezzetti73e2f6ee5146
diff --git a/src/python/txtai/agent/tool/bash.py b/src/python/txtai/agent/tool/bash.py
index 50d93152..deda1cea 100644
--- a/src/python/txtai/agent/tool/bash.py
+++ b/src/python/txtai/agent/tool/bash.py
@@ -19,7 +19,7 @@ class BashTool(Tool):
Creates a BashTool.
Args:
- allowed: list of allowed commands to run, has limited set of defaults
+ allowed: list of allowed commands to run, has limited set of defaults which are a best effort not a sandbox
"""
# Tool parameters
@@ -31,7 +31,7 @@ class BashTool(Tool):
self.output_type = "any"
# Default list of allowed commands
- self.allowed = allowed if allowed else ["cat", "cut", "diff", "find", "grep", "head", "ls", "tail"]
+ self.allowed = allowed if allowed else ["cat", "cut", "diff", "grep", "head", "ls", "tail"]
# Validate parameters and initialize tool
super().__init__()