Przeglądaj źródła

fix: cot gent duplicate messages (#4470)

tags/0.6.9
Yeuoly 1 rok temu
rodzic
commit
c2a8fa91b1
No account linked to committer's email address
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      api/core/agent/cot_agent_runner.py

+ 1
- 1
api/core/agent/cot_agent_runner.py Wyświetl plik



if not scratchpad.action: if not scratchpad.action:
# failed to extract action, return final answer directly # failed to extract action, return final answer directly
final_answer = scratchpad.agent_response or ''
final_answer = ''
else: else:
if scratchpad.action.action_name.lower() == "final answer": if scratchpad.action.action_name.lower() == "final answer":
# action is final answer, return final answer directly # action is final answer, return final answer directly

Ładowanie…
Anuluj
Zapisz