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:
baselineladybugthinkyrace_carnim_randomcogsguardcogsguard_pyteacherminerscoutalignerscrambler
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
_pyonly 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cf5996b93406f102be08799590e73b2a4e64b93e68bb4c9557718f9c70bc325
|
|
| MD5 |
5fea7d4d18514566046703638e860cb8
|
|
| BLAKE2b-256 |
dc4a5b7fadc5d67333f00f08edd012571fadc61366a40da2899db59b1e8bd397
|
File details
Details for the file cogames_agents-0.0.2-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: cogames_agents-0.0.2-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 371.4 kB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0565833715745ff201648698cfceb5cf9e1b4811539c1b6a8e3ccf2e093cc59
|
|
| MD5 |
6e0eb78f90c30ec64d752bd3977f5154
|
|
| BLAKE2b-256 |
b16aafec0704c59093649adf231ea28cf9b592d7a5576862f0eeee013eacea7f
|