Przeglądaj źródła

fix: Agent is configured for ReAct inference mode, an error is reported when viewing the agent log (#12920)

Co-authored-by: crazywoola <427733928@qq.com>
tags/0.15.2
jiandanfeng 9 miesięcy temu
rodzic
commit
8429877b02
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

@@ -172,7 +172,7 @@ class CotAgentRunner(BaseAgentRunner, ABC):

self.save_agent_thought(
agent_thought=agent_thought,
tool_name=scratchpad.action.action_name if scratchpad.action else "",
tool_name=(scratchpad.action.action_name if scratchpad.action and not scratchpad.is_final() else ""),
tool_input={scratchpad.action.action_name: scratchpad.action.action_input} if scratchpad.action else {},
tool_invoke_meta={},
thought=scratchpad.thought or "",

Ładowanie…
Anuluj
Zapisz