From 6f3a29b55dd42237f94112a2d7d6b7a32c0df3bb Mon Sep 17 00:00:00 2001 From: yyhhyy <95077259+yyhhyyyyyy@users.noreply.github.com> Date: Tue, 9 Apr 2024 13:57:31 +0800 Subject: [PATCH] code-standards --- dbgpt/serve/agent/team/plan/planner_agent.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dbgpt/serve/agent/team/plan/planner_agent.py b/dbgpt/serve/agent/team/plan/planner_agent.py index 925e6f071..65b19eb1d 100644 --- a/dbgpt/serve/agent/team/plan/planner_agent.py +++ b/dbgpt/serve/agent/team/plan/planner_agent.py @@ -5,6 +5,7 @@ from dbgpt._private.config import Config from dbgpt.agent.agents.base_agent_new import ConversableAgent from dbgpt.agent.resource.resource_api import AgentResource + from .plan_action import PlanAction CFG = Config() @@ -80,7 +81,10 @@ def bind_agents(self, agents: List[ConversableAgent]) -> ConversableAgent: for agent in self.agents: if agent.resources and len(agent.resources) > 0: for resource in agent.resources: - if self.get_unique_resources_codes(resource) not in unique_resources: + if ( + self.get_unique_resources_codes(resource) + not in unique_resources + ): unique_resources.add(self.get_unique_resources_codes(resource)) self.resources.append(resource) return self