Rename models.py to types.py across all environments #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The file name
models.py
in environment directories was causing confusion, as readers typically expect "models" to refer to machine learning models (neural networks, transformers, etc.). However, these files actually contain data type definitions - dataclasses forAction
,Observation
, andState
types used by each environment.Solution
Renamed all
models.py
files totypes.py
across all environments to better reflect their actual purpose. The name "types" clearly indicates these files contain type definitions and is understood by both AI/ML and infrastructure engineers.Changes
Files Renamed
src/envs/atari_env/models.py
→types.py
src/envs/coding_env/models.py
→types.py
src/envs/echo_env/models.py
→types.py
src/envs/chat_env/models.py
→types.py
src/envs/openspiel_env/models.py
→types.py
Updated References
.models
to.types
(34 files total)Why "types"?
The name
types.py
was chosen because:core/types.py
)Testing
Example Usage (unchanged)
The API remains exactly the same for users:
Users import from the environment package (
envs.echo_env
), so the internal file rename is transparent to them.Original prompt
Fixes #42
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.