aea.components.loader

This module contains utilities for loading components.

component_type_to_class

component_type_to_class(component_type: ComponentType) -> Type[Component]

Get the component class from the component type.

Arguments:

  • component_type: the component type

Returns:

the component class

load_component_from_config

load_component_from_config(configuration: ComponentConfiguration, *args, **kwargs) -> Component

Load a component from a directory.

Arguments:

  • configuration: the component configuration.

Returns:

the component instance.