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