def __init__(
      self,
      model: language_model.LanguageModel,
      components: Sequence[str] = (),
      pre_act_label: str = '\nState',
  ):
    """Initializes the world state component.

    Args:
      model: The language model to use.
      components: Keys of components to condition the world state on.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.
    """
    self._pre_act_label = pre_act_label
    self._model = model
    self._components = components

    self._state = {}
    self._latest_action_spec = None
Initializes the world state component.

    Args:
      model: The language model to use.
      components: Keys of components to condition the world state on.
      pre_act_label: Prefix to add to the output of the component when called
        in `pre_act`.
    
concordia/components/game_master/world_state.py