Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to install new plugin without overwriting existing ones #152

Closed
wants to merge 1 commit into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jun 10, 2023

This PR adds a install_plugin(self, url) method to the Plugins class to install a new plugin from a URL without overwriting any existing plugins.

The method does the following:

  • Loads the plugin manifest and OpenAPI spec from the URL
  • Creates a new PluginObject instance
  • Adds the new PluginObject to self.installed_plugins

This allows installing new plugins dynamically without losing any existing plugin information.

Fixes #151.

@edreisMD edreisMD closed this Jun 10, 2023
@edreisMD edreisMD deleted the sweep/install-new-plugin branch June 19, 2023 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let plugins instance load a new plugin (url) without overwriting the ones that are already loaded.
1 participant