aea.runner
This module contains the implementation of AEA multiple instances runner.
AEAInstanceTask Objects
Task to run agent instance.
__
init__
Init aea instance task.
Arguments:
agent
: AEA instance to run within task.
id
Return agent name.
start
Start task.
stop
Stop task.
create_
async_
task
Return asyncio Task for task run in asyncio loop.
Arguments:
loop
: abstract event loop
Returns:
task to run runtime
AEARunner Objects
Run multiple AEA instances.
__
init__
| __init__(agents: Sequence[AEA], mode: str, fail_policy: ExecutorExceptionPolicies = ExecutorExceptionPolicies.propagate) -> None
Init AEARunner.
Arguments:
agents
: sequence of AEA instances to run.mode
: executor name to use.fail_policy
: one of ExecutorExceptionPolicies to be used with Executor