Skip to main content

Optional agent policies for CoGames

Project description

cogames-agents

Optional scripted policies for CoGames. Use them for quick baselines, play/eval smoke tests, or as teacher policies.

Scripted policy registry

The registry at cogames_agents.policy.scripted_registry maps short names to metta://policy/... URIs. Scripted agents and teachers share these identifiers, so the same name works for evaluation, play, and TeacherConfig.policy_uri.

Available scripted policy names:

  • baseline
  • ladybug
  • thinky
  • race_car
  • nim_random
  • cogsguard
  • cogsguard_py
  • teacher
  • miner
  • scout
  • aligner
  • scrambler

Role-specific policies are exposed via role names (miner/scout/aligner/scrambler). For the teacher policy, you can pass role_vibes as a comma-separated list:

metta://policy/teacher?role_vibes=miner,scout

Recipe usage

The recipes.experiment.scripted_agents recipe accepts the same scripted policy names:

./tools/run.py recipes.experiment.scripted_agents.play agent=thinky suite=cvc_arena
./tools/run.py recipes.experiment.scripted_agents.play agent=miner suite=cogsguard

Included policies

  • Nim policies (short names; default when both exist): thinky, nim_random, race_car, ladybug, cogsguard
  • Python scripted policies (use _py only when Nim exists): baseline, tiny_baseline, ladybug_py, cogsguard_py
  • Core scripted policy (in cogames): starter
  • Scripted roles: miner, scout, aligner, scrambler
  • Teacher wrapper: teacher (forces an initial role/vibe, then delegates to the Nim policy)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cogames_agents-0.0.2.tar.gz (99.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cogames_agents-0.0.2-cp312-cp312-manylinux_2_34_x86_64.whl (371.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

File details

Details for the file cogames_agents-0.0.2.tar.gz.

File metadata

  • Download URL: cogames_agents-0.0.2.tar.gz
  • Upload date:
  • Size: 99.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for cogames_agents-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2cf5996b93406f102be08799590e73b2a4e64b93e68bb4c9557718f9c70bc325
MD5 5fea7d4d18514566046703638e860cb8
BLAKE2b-256 dc4a5b7fadc5d67333f00f08edd012571fadc61366a40da2899db59b1e8bd397

See more details on using hashes here.

File details

Details for the file cogames_agents-0.0.2-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for cogames_agents-0.0.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f0565833715745ff201648698cfceb5cf9e1b4811539c1b6a8e3ccf2e093cc59
MD5 6e0eb78f90c30ec64d752bd3977f5154
BLAKE2b-256 b16aafec0704c59093649adf231ea28cf9b592d7a5576862f0eeee013eacea7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page