add max_steps

This commit is contained in:
xiangjinyu 2025-03-12 19:22:32 +08:00
parent 5bba31db3e
commit d847b550d6
2 changed files with 1 additions and 1 deletions

1
app.py
View File

@ -110,7 +110,6 @@ async def run_task(task_id: str, prompt: str):
agent = Manus( agent = Manus(
name="Manus", name="Manus",
description="A versatile agent that can solve various tasks using multiple tools", description="A versatile agent that can solve various tasks using multiple tools",
max_steps=30,
) )
async def on_think(thought): async def on_think(thought):

View File

@ -27,6 +27,7 @@ class Manus(ToolCallAgent):
next_step_prompt: str = NEXT_STEP_PROMPT next_step_prompt: str = NEXT_STEP_PROMPT
max_observe: int = 2000 max_observe: int = 2000
max_steps: int = 20
# Add general-purpose tools to the tool collection # Add general-purpose tools to the tool collection
available_tools: ToolCollection = Field( available_tools: ToolCollection = Field(