aea.launcher¶
This module contains the implementation of multiple AEA configs launcher.
load_
agent¶
Load AEA from directory.
Arguments:
agent_dir
: agent configuration directorypassword
: the password to encrypt/decrypt the private key.
Returns:
AEA instance
AEADirTask Objects¶
Task to run agent from agent configuration directory.
__
init__
¶
Init aea config dir task.
Arguments:
agent_dir
: directory with aea config.password
: the password to encrypt/decrypt the private key.
id¶
Return agent_dir.
start¶
Start task.
stop¶
Stop task.
create_
async_
task¶
Return asyncio Task for task run in asyncio loop.
AEADirMultiprocessTask Objects¶
Task to run agent from agent configuration directory.
Version for multiprocess executor mode.
__
init__
¶
def __init__(agent_dir: Union[PathLike, str],
log_level: Optional[str] = None,
password: Optional[str] = None) -> None
Init aea config dir task.
Arguments:
agent_dir
: directory with aea config.log_level
: debug level applied for AEA in subprocesspassword
: the password to encrypt/decrypt the private key.
id¶
Return agent_dir.
failed¶
Return was exception failed or not.
If it's running it's not failed.
Returns:
bool
start¶
Return function and arguments to call within subprocess.
stop¶
Stop task.
AEALauncher Objects¶
Run multiple AEA instances.
__
init__
¶
def __init__(agent_dirs: Sequence[Union[PathLike, str]],
mode: str,
fail_policy: ExecutorExceptionPolicies = ExecutorExceptionPolicies
.propagate,
log_level: Optional[str] = None,
password: Optional[str] = None) -> None
Init AEALauncher.
Arguments:
agent_dirs
: sequence of AEA config directories.mode
: executor name to use.fail_policy
: one of ExecutorExceptionPolicies to be used with Executorlog_level
: debug level applied for AEA in subprocessespassword
: the password to encrypt/decrypt the private key.