Skip to content

Commit ade073c

Browse files
author
Your Name
committed
If a tool takes no params, do not add it to invocation cache
1 parent 5d1e4de commit ade073c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cecli/tools/utils/base_tool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def process_response(cls, coder, params):
120120
)
121121

122122
# Add current invocation to history (keeping only last 3)
123-
cls._invocations[tool_name].append((current_params_tuple, params))
123+
if params:
124+
cls._invocations[tool_name].append((current_params_tuple, params))
124125
if len(cls._invocations[tool_name]) > 3:
125126
cls._invocations[tool_name] = cls._invocations[tool_name][-3:]
126127

0 commit comments

Comments
 (0)