aea.components.base
This module contains definitions of agent components.
Component Objects
Abstract class for an agent component.
__init__
| __init__(configuration: Optional[ComponentConfiguration] = None, is_vendor: bool = False, **kwargs: Any, ,) -> None
Initialize a package.
Arguments:
configuration: the package configuration.is_vendor: whether the package is vendorized.kwargs: the keyword arguments for the logger.
component_type
Get the component type.
is_vendor
Get whether the component is vendorized or not.
prefix_import_path
Get the prefix import path for this component.
component_id
Ge the package id.
public_id
Get the public id.
configuration
Get the component configuration.
directory
Get the directory. Raise error if it has not been set yet.
directory
Set the directory. Raise error if already set.
build_directory
Get build directory for the component.
load_aea_package
Load the AEA package from configuration.
It adds all the init.py modules into sys.modules.
Arguments:
configuration: the configuration object.
perform_load_aea_package
perform_load_aea_package(dir_: Path, author: str, package_type_plural: str, package_name: str) -> None
Load the AEA package from values provided.
It adds all the init.py modules into sys.modules.
Arguments:
dir_: path of the component.author: strpackage_type_plural: strpackage_name: str