From 4f972b7faeceaac7e961449385419ee76f316003 Mon Sep 17 00:00:00 2001 From: leslie2046 <253605712@qq.com> Date: Sat, 28 Dec 2024 19:25:50 +0800 Subject: [PATCH] fix #12125 --- api/core/agent/fc_agent_runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/core/agent/fc_agent_runner.py b/api/core/agent/fc_agent_runner.py index b862c96072aaa0..e5905bed7142a6 100644 --- a/api/core/agent/fc_agent_runner.py +++ b/api/core/agent/fc_agent_runner.py @@ -280,9 +280,9 @@ def increase_usage(final_llm_usage_dict: dict[str, LLMUsage], usage: LLMUsage): # save agent thought self.save_agent_thought( agent_thought=agent_thought, - tool_name="", - tool_input="", - thought="", + tool_name=None, + tool_input=None, + thought=None, tool_invoke_meta={ tool_response["tool_call_name"]: tool_response["meta"] for tool_response in tool_responses },