From 7aeed342e9a35cd326e09c10c9dc3fd669e84165 Mon Sep 17 00:00:00 2001 From: yitong <2969413251@qq.com> Date: Fri, 13 Oct 2023 19:34:10 +0800 Subject: [PATCH] fix: fix a bug about updating kwargs --- agentverse/agents/tasksolving_agent/critic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agentverse/agents/tasksolving_agent/critic.py b/agentverse/agents/tasksolving_agent/critic.py index f6aeae3ca..6cbe46148 100644 --- a/agentverse/agents/tasksolving_agent/critic.py +++ b/agentverse/agents/tasksolving_agent/critic.py @@ -38,9 +38,9 @@ def __init__(self, *args, **kwargs): tool_descriptions = "\n".join( [f"- {t['name']}: " + t["description"] for t in tools] ) - kwargs.update('tools', tools) - kwargs.update('tool_names', tool_names) - kwargs.update('tool_descriptions', tool_descriptions) + kwargs.update({"tools": tools}) + kwargs.update({"tool_names": tool_names}) + kwargs.update({"tool_descriptions": tool_descriptions}) except Exception as e: logger.error(e) logger.warn("Failed to load tool config file.")