Skip to content

Commit 8f2472b

Browse files
committed
fix: tool_calling_llm correct step count
1 parent 202a3d8 commit 8f2472b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

holmes/core/tool_calling_llm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def call(
135135
perf_timing.measure(f"start iteration {i}")
136136
logging.debug(f"running iteration {i}")
137137
# on the last step we don't allow tools - we want to force a reply, not a request to run another tool
138-
tools = None if i == max_steps - 1 else tools
138+
tools = None if i == max_steps else tools
139139
tool_choice = "auto" if tools else None
140140

141141
total_tokens = self.llm.count_tokens_for_message(messages)

0 commit comments

Comments
 (0)