From cafd4a18daa15a311a69e4c43683331359f01c81 Mon Sep 17 00:00:00 2001 From: Yizhou Chi Date: Tue, 11 Mar 2025 17:39:28 +0800 Subject: [PATCH 1/2] fix infinite loop --- app/prompt/manus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/prompt/manus.py b/app/prompt/manus.py index 7c5b686..442b547 100644 --- a/app/prompt/manus.py +++ b/app/prompt/manus.py @@ -11,4 +11,8 @@ BrowserUseTool: Open, browse, and use web browsers.If you open a local HTML file GoogleSearch: Perform web information retrieval Based on user needs, proactively select the most appropriate tool or combination of tools. For complex tasks, you can break down the problem and use different tools step by step to solve it. After using each tool, clearly explain the execution results and suggest the next steps. -""" + +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. + +Always maintain a helpful, informative tone throughout the interaction. If you encounter any limitations or need more details, clearly communicate this to the user before terminating. +""" \ No newline at end of file From 61d705f6e68bfc5008854503a3ff077a75da9fa1 Mon Sep 17 00:00:00 2001 From: Yizhou Chi Date: Tue, 11 Mar 2025 17:55:40 +0800 Subject: [PATCH 2/2] fix prompt order --- app/prompt/manus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/prompt/manus.py b/app/prompt/manus.py index 442b547..c0be47d 100644 --- a/app/prompt/manus.py +++ b/app/prompt/manus.py @@ -10,9 +10,9 @@ BrowserUseTool: Open, browse, and use web browsers.If you open a local HTML file GoogleSearch: Perform web information retrieval -Based on user needs, proactively select the most appropriate tool or combination of tools. For complex tasks, you can break down the problem and use different tools step by step to solve it. After using each tool, clearly explain the execution results and suggest the next steps. - 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. +Based on user needs, proactively select the most appropriate tool or combination of tools. For complex tasks, you can break down the problem and use different tools step by step to solve it. After using each tool, clearly explain the execution results and suggest the next steps. + Always maintain a helpful, informative tone throughout the interaction. If you encounter any limitations or need more details, clearly communicate this to the user before terminating. """ \ No newline at end of file