mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-24 01:14:22 +01:00
Merge branch 'plugin-support' of https://github.com/BillSchumacher/Auto-GPT into pr/4
This commit is contained in:
@@ -16,6 +16,8 @@ from openapi_python_client.cli import Config as OpenAPIConfig
|
||||
from autogpt.config import Config
|
||||
from autogpt.models.base_open_ai_plugin import BaseOpenAIPlugin
|
||||
|
||||
from auto_gpt_plugin_template import AutoGPTPluginTemplate
|
||||
|
||||
|
||||
def inspect_zip_for_module(zip_path: str, debug: bool = False) -> Optional[str]:
|
||||
"""
|
||||
@@ -175,8 +177,10 @@ def instantiate_openai_plugin_clients(manifests_specs_clients: dict, cfg: Config
|
||||
return plugins
|
||||
|
||||
|
||||
def scan_plugins(cfg: Config, debug: bool = False) -> List[object]:
|
||||
"""Scan the plugins directory for plugins and loads them.
|
||||
def load_plugins(
|
||||
plugins_path: Path, debug: bool = False
|
||||
) -> List[AutoGPTPluginTemplate]:
|
||||
"""Load plugins from the plugins directory.
|
||||
|
||||
Args:
|
||||
cfg (Config): Config instance including plugins config
|
||||
|
||||
Reference in New Issue
Block a user