Skip to content

Commit

Permalink
code-standards
Browse files Browse the repository at this point in the history
  • Loading branch information
yyhhyyyyyy authored Apr 9, 2024
1 parent 255e761 commit 6f3a29b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbgpt/serve/agent/team/plan/planner_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f3a29b

Please sign in to comment.