From a3b9ecfd55e2126521827d959bee4be2ddad6fde Mon Sep 17 00:00:00 2001 From: Adam Cohen Hillel Date: Wed, 9 Apr 2025 00:38:31 +0100 Subject: [PATCH] shelly --- backend/agent/tools/sb_shell_tool.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/agent/tools/sb_shell_tool.py b/backend/agent/tools/sb_shell_tool.py index eff45684..f7bdcee6 100644 --- a/backend/agent/tools/sb_shell_tool.py +++ b/backend/agent/tools/sb_shell_tool.py @@ -1,6 +1,18 @@ from agentpress.tool import ToolResult, openapi_schema, xml_schema from agent.tools.utils.daytona_sandbox import SandboxToolsBase +# TODO: might want to be more granular with the tool names: +# file_read - Read file content. Use for checking file contents, analyzing logs, or reading configuration files. +# file_write - Overwrite or append content to a file. Use for creating new files, appending content, or modifying existing files. +# file_str_replace - Replace specified string in a file. Use for updating specific content in files or fixing errors in code. +# file_find_in_content - Search for matching text within file content. Use for finding specific content or patterns in files. +# file_find_by_name - Find files by name pattern in specified directory. Use for locating files with specific naming patterns. +# shell_exec - Execute commands in a specified shell session. Use for running code, installing packages, or managing files. +# shell_view - View the content of a specified shell session. Use for checking command execution results or monitoring output. +# shell_wait - Wait for the running process in a specified shell session to return. Use after running commands that require longer runtime. +# shell_write_to_process - Write input to a running process in a specified shell session. Use for responding to interactive command prompts. +# shell_kill_process - Terminate a running process in a specified shell session. Use for stopping long-running processes or handling frozen commands. + class SandboxShellTool(SandboxToolsBase): """Tool for executing tasks in a Daytona sandbox with browser-use capabilities."""