diff --git a/pkgs/core/swarmauri_core/ComponentBase.py b/pkgs/core/swarmauri_core/ComponentBase.py index a8e47588..04f99ed3 100644 --- a/pkgs/core/swarmauri_core/ComponentBase.py +++ b/pkgs/core/swarmauri_core/ComponentBase.py @@ -184,28 +184,6 @@ def decorator(subclass: Type['ComponentBase']): return subclass return decorator - @classmethod - def register_type_placeholder(cls, resource_type: str, type_name: str, module_path: str, interface: Optional[Type[Any]] = None): - """ - Registers a placeholder for a component class with a specific type name under a resource type. - Used for lazy-loaded plugins to register type information without loading the module. - - Parameters: - - resource_type: The category of the resource (e.g., 'agents', 'chains'). - - type_name: The string identifier for the component type. - - module_path: The module path where the class will be loaded from. - - interface: The interface class that the component implements. - """ - if resource_type not in cls.TYPE_REGISTRY: - cls.TYPE_REGISTRY[resource_type] = {} - cls.TYPE_REGISTRY[resource_type][type_name] = { - "module_path": module_path, - "class_name": type_name, - "interface": interface - } - # No need to recreate models as no actual class is loaded - logger.info(f"Registered placeholder for type '{type_name}' under resource '{resource_type}' with module '{module_path}' and interface '{interface.__name__ if interface else 'None'}'") - @classmethod def register_model(cls): """