arinpt's picture
CausalGame repro bundle: modified harness (hf provider) + repro scripts
2b9a95b verified
Raw
History Blame Contribute Delete
1.06 kB
"""
Flexible Action Space Module
Provides configurable action spaces for experiments including:
- Numerical actions (continuous values like DEF)
- Discrete actions (categorical choices like equipment)
- Boolean actions (on/off flags)
- Hidden effect mapping
Each experiment can define its own action_space.json to customize
what actions are available to the agent.
"""
from .schema import (
ActionSpaceConfig,
NumericalAction,
DiscreteAction,
DiscreteOption,
DiscreteType,
BooleanAction,
EquipmentEffects,
Constraints,
ActionType,
)
from .loader import (
load_action_space,
load_action_space_from_game_config,
get_action_space,
clear_cache,
)
__all__ = [
# Schema classes
'ActionSpaceConfig',
'NumericalAction',
'DiscreteAction',
'DiscreteOption',
'DiscreteType',
'BooleanAction',
'EquipmentEffects',
'Constraints',
'ActionType',
# Loader functions
'load_action_space',
'load_action_space_from_game_config',
'get_action_space',
'clear_cache',
]