Skip to content

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 missing environment or an env entry is not formatted as KEY=VALUE.

start

def start() -> None

Start process.

Raises:

  • ValueError: if AEA_AGENT is not present in the docker-compose service block. A common cause is replaying against a build dir generated before the VALORY_APPLICATIONAEA_AGENT rename.
  • ValueError: if AEA_KEY is not present in the docker-compose service block.

stop

def stop() -> None

Stop the process.