From d847b550d6d3e13390f81eddda896d2ab3a6d95c Mon Sep 17 00:00:00 2001 From: xiangjinyu <1376193973@qq.com> Date: Wed, 12 Mar 2025 19:22:32 +0800 Subject: [PATCH] add max_steps --- app.py | 1 - app/agent/manus.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0649402..5194732 100644 --- a/app.py +++ b/app.py @@ -110,7 +110,6 @@ async def run_task(task_id: str, prompt: str): agent = Manus( name="Manus", description="A versatile agent that can solve various tasks using multiple tools", - max_steps=30, ) async def on_think(thought): diff --git a/app/agent/manus.py b/app/agent/manus.py index 1472a57..db68cca 100644 --- a/app/agent/manus.py +++ b/app/agent/manus.py @@ -27,6 +27,7 @@ class Manus(ToolCallAgent): next_step_prompt: str = NEXT_STEP_PROMPT max_observe: int = 2000 + max_steps: int = 20 # Add general-purpose tools to the tool collection available_tools: ToolCollection = Field(