From 6df9f79f694ba4aaf0dc84867cd44e66c062c99f Mon Sep 17 00:00:00 2001 From: ASTLY <49380783+ASTLY123@users.noreply.github.com> Date: Wed, 13 Mar 2024 10:11:12 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20problem=20of=20loading=20only=20o?= =?UTF-8?q?ne=20plugin=20when=20there=20are=20multiple=20=E2=80=A6=20(#128?= =?UTF-8?q?2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbgpt/agent/agents/expand/plugin_assistant_agent.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dbgpt/agent/agents/expand/plugin_assistant_agent.py b/dbgpt/agent/agents/expand/plugin_assistant_agent.py index 59f599067..d1ad50ec0 100644 --- a/dbgpt/agent/agents/expand/plugin_assistant_agent.py +++ b/dbgpt/agent/agents/expand/plugin_assistant_agent.py @@ -49,10 +49,12 @@ class PluginAssistantAgent(ConversableAgent): plugin_loader_client: ResourcePluginClient = ( self.resource_loader.get_resesource_api(ResourceType.Plugin) ) + item_list = [] for item in self.resources: if item.type == ResourceType.Plugin: - self.plugin_generator = await plugin_loader_client.a_load_plugin( - item.value, self.plugin_generator + item_list.append(item.value) + self.plugin_generator = await plugin_loader_client.a_load_plugin( + item_list, self.plugin_generator ) def prepare_act_param(self) -> Optional[Dict]: