langgoap.rehydrate_state#
- rehydrate_state(state, actions=None)[source]#
Return a copy of state with typed
goal,planand history.Bookkeeping keys that are absent are filled from
STATE_DEFAULTS;goal,world_state,planandstatusstay absent when absent. Keys already holding typed objects pass through. actions is the live action list (orname -> specmapping) used to rebind plan actions.- Parameters:
state (Mapping[str, Any])
actions (Mapping[str, ActionSpec] | Iterable[ActionSpec] | None)
- Return type: