Skip to content

Commit c2a8fa9

Browse files
authored
fix: cot gent duplicate messages (langgenius#4470)
1 parent 091fba7 commit c2a8fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/core/agent/cot_agent_runner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def increase_usage(final_llm_usage_dict: dict[str, LLMUsage], usage: LLMUsage):
189189

190190
if not scratchpad.action:
191191
# failed to extract action, return final answer directly
192-
final_answer = scratchpad.agent_response or ''
192+
final_answer = ''
193193
else:
194194
if scratchpad.action.action_name.lower() == "final answer":
195195
# action is final answer, return final answer directly

0 commit comments

Comments
 (0)