File size: 1,063 Bytes
2b9a95b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | """
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',
]
|