16. Configure ten agent identifiers
To configure a ten-agent experiment, list the identifiers once and use the same values as keys in the model's possible_agents, observation-space and action-space data. The agents list can contain the subset that is currently active. This complete GAML declaration shows the identifiers only; it does not define a simulation or space descriptors:
list<string> agent_ids <- [
"forager_0", "forager_1", "forager_2", "forager_3", "forager_4",
"forager_5", "forager_6", "forager_7", "forager_8", "forager_9"
];
The wrapper reads the possible-agent list and space maps when it creates the environment, so those maps must include every identifier that may be active. At reset, the model reports the agents active in the episode and their observations. Use those observations to build one action per active agent. Test the complete model, reward logic and episode flags together before using it for training; this page does not report a ten-agent run.