Agent state representation for ML models

interface MLAgentState {
    actionHistory?: AgentAction[];
    environment: EnvironmentContext;
    neighbors: Agent[];
    position: Position;
    properties: Record<string, number>;
}

Properties

actionHistory?: AgentAction[]

Optional: Previous actions taken by this agent

environment: EnvironmentContext

Environmental context information

neighbors: Agent[]

Neighboring agents within detection radius

position: Position

Current position of the agent

properties: Record<string, number>

Agent properties as key-value pairs