-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Description
custom_actions is commented in HighlevelActionSetArgs:
BrowserGym/browsergym/experiments/src/browsergym/experiments/benchmark/base.py
Lines 26 to 34 in 91b0e23
| class HighLevelActionSetArgs(DataClassJsonMixin): | |
| subsets: tuple[HighLevelActionSet.ActionSubset] = field( | |
| metadata=config( | |
| encoder=lambda x: list(x), | |
| decoder=lambda x: tuple(x), | |
| ), | |
| ) | |
| # custom_actions: list[callable] | None # non-serializable argument, not supported | |
| multiaction: bool = False |
But is needed to create a custom action set:
BrowserGym/browsergym/core/src/browsergym/core/action/highlevel.py
Lines 317 to 322 in 91b0e23
| elif subset == "custom": | |
| if not custom_actions: | |
| raise ValueError( | |
| "'custom' is in 'action_subsets' but 'custom_actions' is empty." | |
| ) | |
| allowed_actions.extend(custom_actions) |
What's the alternative to create custom action sets if not using the "custom" value for subsets ?
Metadata
Metadata
Assignees
Labels
No labels