Skip to content

Commit 51ca053

Browse files
authored
Fix max_steps parsing for agent execute (#179)
1 parent d95974a commit 51ca053

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stagehand": patch
3+
---
4+
5+
Fix max_steps parsing for agent execute options

stagehand/agent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def execute(
132132
try:
133133
agent_result = await self.client.run_task(
134134
instruction=instruction,
135-
max_steps=self.config.max_steps,
135+
max_steps=options.max_steps or self.config.max_steps,
136136
options=options,
137137
)
138138
except Exception as e:

0 commit comments

Comments
 (0)