add max_steps
This commit is contained in:
parent
5bba31db3e
commit
d847b550d6
1
app.py
1
app.py
@ -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):
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user