Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dragon-of-fabulous-persistence.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"stagehand": patch
---

Fix max_steps parsing for agent execute options
2 changes: 1 addition & 1 deletion stagehand/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def execute(
try:
agent_result = await self.client.run_task(
instruction=instruction,
max_steps=self.config.max_steps,
max_steps=options.max_steps or self.config.max_steps,
options=options,
)
except Exception as e:
Expand Down