Class swarmauri_core.factories.IFactory.IFactory
swarmauri_core.factories.IFactory.IFactory
Bases: ABC
Interface defining core methods for factories.
create
abstractmethod
create(type, *args, **kwargs)
Create and return an instance.
Source code in swarmauri_core/factories/IFactory.py
10 11 12 13 |
|
register
abstractmethod
register(type, resource_class)
Register a class with the factory.
Source code in swarmauri_core/factories/IFactory.py
15 16 17 18 |
|