Skip to content

Commit d37e9a8

Browse files
committed
feat: update repeated tool notice thresholds to improve user guidance
1 parent 14e3576 commit d37e9a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

astrbot/core/agent/runners/tool_loop_agent_runner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
130130
"Do not return an empty response. "
131131
"Do not ignore the selected tools without explanation."
132132
)
133-
REPEATED_TOOL_NOTICE_L1_THRESHOLD = 2
134-
REPEATED_TOOL_NOTICE_L2_THRESHOLD = 3
133+
REPEATED_TOOL_NOTICE_L1_THRESHOLD = 3
134+
REPEATED_TOOL_NOTICE_L2_THRESHOLD = 4
135135
REPEATED_TOOL_NOTICE_L3_THRESHOLD = 5
136136
REPEATED_TOOL_NOTICE_L1_TEMPLATE = (
137137
"\n\n[SYSTEM NOTICE] By the way, you have executed the same tool "

0 commit comments

Comments
 (0)