From ffa7508a8bc5561cc8aa319a6fce67298747f1f0 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 27 Apr 2026 22:10:41 +0800 Subject: [PATCH] feat(shell): reorder timeout parameter in ExecuteShellTool configuration --- astrbot/core/tools/computer_tools/shell.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/astrbot/core/tools/computer_tools/shell.py b/astrbot/core/tools/computer_tools/shell.py index 03bc420b4..11f1692c5 100644 --- a/astrbot/core/tools/computer_tools/shell.py +++ b/astrbot/core/tools/computer_tools/shell.py @@ -58,16 +58,16 @@ class ExecuteShellTool(FunctionTool): "type": "string", "description": "The shell command to execute in the current runtime shell (for example, cmd.exe on Windows). Equal to 'cd {working_dir} && {your_command}'.", }, - "timeout": { - "type": "integer", - "description": "Optional timeout in seconds for the command execution.", - "default": 300, - }, "background": { "type": "boolean", "description": "Run the command in the background. Use the file read tool to read the output later.", "default": False, }, + "timeout": { + "type": "integer", + "description": "Optional timeout in seconds for the command execution.", + "default": 300, + }, "env": { "type": "object", "description": "Optional environment variables to set.",