L’interface est localisée ; les présentations et documents des Skills sont traduits automatiquement par IA dans votre langue. Le code, les commandes, chemins et termes techniques restent en version originale, et le document de l’auteur fait foi.
Explorer les Skills
Productivité · SKILL.md

pettingzoo

pettingzoo

Use, select, author, validate, wrap, and integrate PettingZoo multi-agent reinforcement-learning environments.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentation de la Skill

GitHub

name: pettingzoo description: "Use, select, author, validate, wrap, and integrate PettingZoo multi-agent reinforcement-learning environments." disable-model-invocation: true metadata: disco-role: operating license: NOASSERTION

PettingZoo

Use this repo skill when a task involves PettingZoo, the multi-agent reinforcement-learning environment API built around AEC and Parallel environment interfaces. It helps future agents write correct environment loops, choose optional environment families, implement custom environments, compose wrappers/utilities, run compliance tests, and adapt framework tutorials safely.

Start Here

Route By Task

Verified Package Facts

  • Package/import name: pettingzoo.
  • Version covered by this skill: 1.26.1.
  • Python range: >=3.9,<3.15.
  • Base dependencies: numpy>=1.21.0 and gymnasium>=1.0.0.
  • Base install covers API classes, wrappers, conversion helpers, test utilities, and custom environment authoring support.
  • Optional extras are required for most built-in environment families: [classic], [butterfly], [atari], [sisl], [other], [testing], and [all].
  • PettingZoo declares no console entry points; use Python imports and bundled scripts instead of expecting a pettingzoo CLI.

Minimal Install Guidance

Base API and custom environment work:

pip install pettingzoo
python -c "import pettingzoo; print(pettingzoo.__version__)"

Install only the family you need:

pip install 'pettingzoo[classic]'
pip install 'pettingzoo[butterfly]'
pip install 'pettingzoo[atari]'
pip install 'pettingzoo[sisl]'

Avoid pettingzoo[all] unless you deliberately need broad local coverage across several environment families. It can add compiled and GUI-related dependencies, and it does not install Atari ROMs or training frameworks.

Safe Workflow Defaults

  • Prefer bounded, headless smoke checks before GUI rendering, long training, framework setup, or Atari ROM workflows.
  • Use reset(seed=...), step only live agents, sample action masks when present, and call close() in finally blocks.
  • Treat built-in environment tutorials as evidence and recipes, not as default commands to run; many require optional extras, render access, large frameworks, or long training.
  • Use PettingZoo compliance helpers for custom environments before adapting them to training frameworks.
  • Keep optional-family dependencies separate from framework dependencies; PettingZoo extras do not install CleanRL, Tianshou, SB3, Ray/RLlib, AgileRL, or LangChain.
Skills enregistrées