AgileRL Multi-Agent And Wrappers
Use this sub-skill for AgileRL multi-agent reinforcement learning with PettingZoo parallel environments, MADDPG, MATD3, IPPO, AsyncPettingZooVecEnv, make_multi_agent_vect_envs, multi-agent replay buffers, agent grouping, asynchronous-agent wrappers, and curriculum/Skill wrappers.
Read First
references/workflows.mdfor PettingZoo vectorization and multi-agent training flow.references/api-reference.mdfor major algorithms, vector envs, wrappers, and buffers.references/configuration.mdfor agent IDs, homogeneous groups, and nestednet_config.references/troubleshooting.mdfor ordering, wrapper, and vector-env issues.scripts/inspect_multi_agent_setup.py --helpfor a no-training config probe.
Boundaries
- Use
../hpo-and-mutation/SKILL.mdfor tournament/mutation probabilities. - Use
../evolvable-modules/SKILL.mdfor network architecture details. - Use
../training-workflows/SKILL.mdfor single-agent Gymnasium workflows. - This sub-skill owns PettingZoo and multi-agent-specific spaces, IDs, vectorization, wrappers, and replay layout.
Multi-Agent Flow
- Create a PettingZoo parallel environment factory.
- Vectorize with
make_multi_agent_vect_envs(...)orAsyncPettingZooVecEnv. - Capture
agent_ids,observation_spaces, andaction_spacesin the same order. - Define
net_configglobally, per agent, or per homogeneous group. - Create a population with
create_population(algo="MADDPG" | "MATD3" | "IPPO", ...). - Use
MultiAgentReplayBufferfor off-policy multi-agent algorithms. - Configure HPO and call the matching multi-agent training helper.
Supported Patterns
MADDPGandMATD3: multi-agent off-policy actor-critic workflows.IPPO: independent PPO-style on-policy workflow, including homogeneous group parameter-sharing patterns.AsyncAgentsWrapper: asynchronous-turn handling for supported algorithms.Skill/curriculum wrappers: hierarchical curriculum-style workflows when the environment exposes lower-level skills.
Safe Validation
python scripts/inspect_multi_agent_setup.py --agents speaker_0 listener_0
The helper validates ID prefixes, synthetic spaces, and grouped config shape. It does not import external PettingZoo environments or train.