mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-28 22:37:31 +00:00
Fixed the problem of loading only one plugin when there are multiple … (#1282)
This commit is contained in:
parent
04b6402720
commit
6df9f79f69
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user