Skip to content

automaton.agent

WARNING

This documentation is almost entirely "vibe coded"; while a helpful resource for humans and agents to understand this codebase, it should not be considered a source of ground truth in the way documentation normally is, and the user is responsible for verifying that all instructions given here are safe.

automaton.agent

Agent configuration for Automaton.

AgentModel dataclass

AgentModel(name: str, config: dict[str, Any])

Resolved model exposed to a harness through an agent.

Agent

Agent(agent_id: str, config: AutomatonConfig)

Represents a configured benchmark agent.

Source code in automaton/agent.py
def __init__(self, agent_id: str, config: AutomatonConfig):
    self.agent_id = agent_id
    self.config = config
    self.definition = config.get_agent(agent_id)
    self.harness_id = str(self.definition.get("harness", "")).strip()
    self.model_names = [str(name) for name in self.definition.get("models", [])]
    self.harness_config = dict(self.definition.get("harness_config", {}) or {})

    self.models = [
        AgentModel(name=model_name, config=config.get_model(model_name))
        for model_name in self.model_names
    ]