chore: update ruff from 0.5.x to 0.6.x (#7384)

This commit is contained in:
Bowen Liang
2024-08-19 09:21:11 +08:00
committed by GitHub
parent fbf31b5d52
commit bbb6fcc4f0
4 changed files with 23 additions and 25 deletions

View File

@@ -449,7 +449,7 @@ class BaseAgentRunner(AppRunner):
try:
tool_responses = json.loads(agent_thought.observation)
except Exception as e:
tool_responses = { tool: agent_thought.observation for tool in tools }
tool_responses = dict.fromkeys(tools, agent_thought.observation)
for tool in tools:
# generate a uuid for tool call