MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / __load_plugin_handler_class

Function __load_plugin_handler_class

plugin/app/cache/plugin_handler.py:13–21  ·  view source on GitHub ↗
(bundle_id: str, plugin_schema_id: str)

Source from the content-addressed store, hash-verified

11
12
13def __load_plugin_handler_class(bundle_id: str, plugin_schema_id: str):
14 # Generate the model class name based on bundle_id
15 class_name = "".join(word.title() for word in plugin_schema_id.split("_"))
16
17 # Import the corresponding module
18 module = importlib.import_module(f"bundles.{bundle_id}.plugins.{plugin_schema_id}.plugin")
19
20 # Return the class from the module
21 return getattr(module, class_name)
22
23
24def get_plugin_handler(bundle_id: str, plugin_id: str):

Callers 1

get_plugin_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected