autonomy.replay.agent
Tools to build and run agents from existing deployments.
AgentRunner Objects
class AgentRunner()
Agent runner.
process
nosec
__init__
def __init__(agent_id: int, agent_data: Dict, registry_path: Path) -> None
Initialize object.
Arguments:
agent_id: numeric id of the agent service entry.agent_data: docker-compose service block for the agent.registry_path: local registry path used when fetching the agent package.
Raises:
ValueError: if the service block is missingenvironmentor an env entry is not formatted asKEY=VALUE.
start
def start() -> None
Start process.
Raises:
ValueError: ifAEA_AGENTis not present in the docker-compose service block. A common cause is replaying against a build dir generated before theVALORY_APPLICATION→AEA_AGENTrename.ValueError: ifAEA_KEYis not present in the docker-compose service block.
stop
def stop() -> None
Stop the process.