From 5cf34f82df63ef6c079a385b298d0662eb1acbc4 Mon Sep 17 00:00:00 2001 From: liangxinbing <1580466765@qq.com> Date: Mon, 17 Mar 2025 23:51:16 +0800 Subject: [PATCH] remove WebSearch tool for Manus --- app/agent/manus.py | 3 +-- app/prompt/manus.py | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/agent/manus.py b/app/agent/manus.py index 4638c37..df784ed 100644 --- a/app/agent/manus.py +++ b/app/agent/manus.py @@ -8,7 +8,6 @@ from app.tool import Terminate, ToolCollection from app.tool.browser_use_tool import BrowserUseTool from app.tool.file_saver import FileSaver from app.tool.python_execute import PythonExecute -from app.tool.web_search import WebSearch class Manus(ToolCallAgent): @@ -34,7 +33,7 @@ class Manus(ToolCallAgent): # Add general-purpose tools to the tool collection available_tools: ToolCollection = Field( default_factory=lambda: ToolCollection( - PythonExecute(), WebSearch(), BrowserUseTool(), FileSaver(), Terminate() + PythonExecute(), BrowserUseTool(), FileSaver(), Terminate() ) ) diff --git a/app/prompt/manus.py b/app/prompt/manus.py index 6dcca8a..0cb944d 100644 --- a/app/prompt/manus.py +++ b/app/prompt/manus.py @@ -6,9 +6,7 @@ PythonExecute: Execute Python code to interact with the computer system, data pr FileSaver: Save files locally, such as txt, py, html, etc. -BrowserUseTool: Open, browse, and use web browsers.If you open a local HTML file, you must provide the absolute path to the file. - -WebSearch: Perform web information retrieval +BrowserUseTool: Open, browse, and use web browsers. If you open a local HTML file, you must provide the absolute path to the file. Terminate: End the current interaction when the task is complete or when you need additional information from the user. Use this tool to signal that you've finished addressing the user's request or need clarification before proceeding further.