MCPcopy
hub / github.com/HKUDS/DeepCode / disable

Method disable

workflows/plugins/base.py:253–261  ·  view source on GitHub ↗

Disable a plugin by name.

(self, plugin_name: str)

Source from the content-addressed store, hash-verified

251 return False
252
253 def disable(self, plugin_name: str) -> bool:
254 """Disable a plugin by name."""
255 for plugins in self._plugins.values():
256 for plugin in plugins:
257 if plugin.name == plugin_name:
258 plugin.enabled = False
259 self.logger.info(f"Disabled plugin '{plugin_name}'")
260 return True
261 return False
262
263 def set_interaction_callback(self, callback: InteractionCallback) -> None:
264 """Set the callback function for user interactions."""

Callers 1

agentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected