StateDictManager#
- class brainstate.StateDictManager(*args, **kwargs)#
State stack, for collecting all
Stateused in the program.StateDictManagersupports all features of python dict.- assign_values(*args)[source]#
Assign the value for each element according to the given
data.- Return type:
- split(first, *others)[source]#
Split the DictManager into multiple based on value types.
- Parameters:
*types (Type) – Types to use for splitting. Each type gets its own DictManager.
- Returns:
A tuple of DictManagers, one for each type plus one for unmatched items.
- Return type: