mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-04 10:00:17 +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 = (
|
plugin_loader_client: ResourcePluginClient = (
|
||||||
self.resource_loader.get_resesource_api(ResourceType.Plugin)
|
self.resource_loader.get_resesource_api(ResourceType.Plugin)
|
||||||
)
|
)
|
||||||
|
item_list = []
|
||||||
for item in self.resources:
|
for item in self.resources:
|
||||||
if item.type == ResourceType.Plugin:
|
if item.type == ResourceType.Plugin:
|
||||||
self.plugin_generator = await plugin_loader_client.a_load_plugin(
|
item_list.append(item.value)
|
||||||
item.value, self.plugin_generator
|
self.plugin_generator = await plugin_loader_client.a_load_plugin(
|
||||||
|
item_list, self.plugin_generator
|
||||||
)
|
)
|
||||||
|
|
||||||
def prepare_act_param(self) -> Optional[Dict]:
|
def prepare_act_param(self) -> Optional[Dict]:
|
||||||
|
Loading…
Reference in New Issue
Block a user