Skip to content

Commit

Permalink
Merge pull request #62 from OpenBMB/gyt_dev
Browse files Browse the repository at this point in the history
fix: fix a bug about updating kwargs
  • Loading branch information
minleminzui authored Oct 13, 2023
2 parents 7739cba + 7aeed34 commit 3af33f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agentverse/agents/tasksolving_agent/critic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 3af33f8

Please sign in to comment.