aea.configurations.components

This module contains definitions of agent components.

Component

class Component(ABC)

Abstract class for an agent component.

__init__

 | __init__(configuration: Optional[ComponentConfiguration] = None, is_vendor: bool = False)

Initialize a package.

Arguments:

  • configuration: the package configuration.
  • is_vendor: whether the package is vendorized.

component_type

 | @property
 | component_type() -> ComponentType

Get the component type.

is_vendor

 | @property
 | is_vendor() -> bool

Get whether the component is vendorized or not.

prefix_import_path

 | @property
 | prefix_import_path()

Get the prefix import path for this component.

component_id

 | @property
 | component_id() -> ComponentId

Ge the package id.

public_id

 | @property
 | public_id() -> PublicId

Get the public id.

configuration

 | @property
 | configuration() -> ComponentConfiguration

Get the component configuration.

directory

 | @directory.setter
 | directory(path: Path) -> None

Set the directory. Raise error if already set.