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

Function __load_bundle_handler_class

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

Source from the content-addressed store, hash-verified

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

Callers 1

get_bundle_handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected