Explorar o código

fix: cot gent duplicate messages (#4470)

Yeuoly hai 11 meses
pai
achega
c2a8fa91b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/core/agent/cot_agent_runner.py

+ 1 - 1
api/core/agent/cot_agent_runner.py

@@ -189,7 +189,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):
 
             if not scratchpad.action:
                 # failed to extract action, return final answer directly
-                final_answer = scratchpad.agent_response or ''
+                final_answer = ''
             else:
                 if scratchpad.action.action_name.lower() == "final answer":
                     # action is final answer, return final answer directly