Skip to content

Commit b871bec

Browse files
authored
Update ReAct max_steps to match paper experiments (#24)
1 parent 46aec15 commit b871bec

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

agent_baselines/solvers/react/basic_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def basic_agent(
221221
init: Solver | list[Solver] | None = None,
222222
tools: list[Tool] | Solver | None = None,
223223
cache: bool | CachePolicy = False,
224-
max_steps: int = 10,
224+
max_steps: int = 100,
225225
max_tool_output: int | None = None,
226226
continue_message: str = DEFAULT_CONTINUE_MESSAGE,
227227
add_submit_tool: bool = True,
@@ -384,7 +384,7 @@ async def solve(state: TaskState, generate: Generate) -> TaskState:
384384

385385
@solver
386386
def instantiated_basic_agent(
387-
max_steps: int = 10,
387+
max_steps: int = 100,
388388
model_override: str | Model | None = None,
389389
**tool_options,
390390
):

solvers/react/demo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ uv run --project "solvers/react" --python 3.11 --frozen -- astabench eval \
1616
--solver agent_baselines/solvers/react/basic_agent.py@instantiated_basic_agent \
1717
--model openai/gpt-4.1-nano \
1818
--limit 1 \
19-
-S max_steps=10 \
19+
-S max_steps=100 \
2020
-S with_search_tools=0 -S with_table_editor=0 -S with_report_editor=0 -S with_thinking_tool=0 \
2121
"$@"

0 commit comments

Comments
 (0)