def __init__(
      self,
      model: language_model.LanguageModel,
      player_names: Sequence[str],
      make_observation_component_key: str,
      pre_act_label: str = DEFAULT_SEND_PRE_ACT_VALUES_TO_PLAYERS_PRE_ACT_LABEL,
  ):
    """Initializes a component that sends component pre-act values to players.

    This component sends the events during the post-act phase to the players
    that are aware of the event, by queueing them in the MakeObservation
    component.

    Args:
      model: The language model to use for the component.
      player_names: Names of players.
      make_observation_component_key: he key for a
        MakeObservation component to add the pre-act values to the queue of
        events to observe.
      pre_act_label: Prefix to add to the output of the component when called in
        `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    """
    super().__init__()
    self._model = model
    self._player_names = player_names
    self._pre_act_label = pre_act_label
    self._queue = {}
    self._last_action_spec = None
    self._optional_make_observation_component_key = (
        make_observation_component_key)

    self._map_names_to_previous_observations = {
        player_name: '' for player_name in player_names
    }
Initializes a component that sends component pre-act values to players.

    This component sends the events during the post-act phase to the players
    that are aware of the event, by queueing them in the MakeObservation
    component.

    Args:
      model: The language model to use for the component.
      player_names: Names of players.
      make_observation_component_key: he key for a
        MakeObservation component to add the pre-act values to the queue of
        events to observe.
      pre_act_label: Prefix to add to the output of the component when called in
        `pre_act`.

    Raises:
      ValueError: If the component order is not None and contains duplicate
        components.
    
concordia/components/game_master/event_resolution.py