Skip to content

autonomy.configurations.base

Base configurations.

Service Objects

class Service(PackageConfiguration)

Service package configuration.

__init__

def __init__(name: SimpleIdOrStr, author: SimpleIdOrStr, agent: PublicId, version: str = "", license_: str = "", aea_version: str = "", fingerprint: Optional[Dict[str, str]] = None, fingerprint_ignore_patterns: Optional[Sequence[str]] = None, description: str = "", number_of_agents: int = 4, build_entrypoint: Optional[str] = None, overrides: Optional[List] = None) -> None

Initialise object.

overrides

@property
def overrides() -> List

Returns component overrides.

overrides

@overrides.setter
def overrides(obj: List) -> None

Set overrides.

json

@property
def json() -> Dict

Returns an ordered Dict for service config.

validate_config_data

@classmethod
def validate_config_data(cls, json_data: Dict, env_vars_friendly: bool = False) -> None

Validate config data.

check_overrides_valid

def check_overrides_valid(overrides: List, env_vars_friendly: bool = False) -> None

Uses the AEA helper libraries to check individual overrides.

process_metadata

@staticmethod
def process_metadata(configuration: Dict) -> Tuple[Dict, ComponentId, bool]

Process component override metadata.

process_component_overrides

def process_component_overrides(agent_idx: int, component_configuration_json: Dict) -> Dict

Process a component configuration in an agent configuration file.

Arguments:

  • agent_idx: Index of the agent.
  • component_configuration_json: the JSON object.

Returns:

the processed component configuration.

generate_environment_variables

@staticmethod
def generate_environment_variables(component_id: ComponentId, component_configuration_json: Dict) -> Dict

Try to process component with a singular component overrides.