def __init__(
      self,
      model: language_model.LanguageModel,
      memory_component_key: str = (
          memory_component.DEFAULT_MEMORY_COMPONENT_KEY
      ),
      num_events_to_retrieve: int = 100,
      pre_act_label: str = 'Recent events',
  ):
    """Initializes the component.

    Args:
      model: The language model to use for the component.
      memory_component_key: The name of the memory component in which to write
        records of events.
      num_events_to_retrieve: The number of events to retrieve.
      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__(pre_act_label)
    self._model = model
    self._memory_component_key = memory_component_key
    self._num_events_to_retrieve = num_events_to_retrieve
Initializes the component.

    Args:
      model: The language model to use for the component.
      memory_component_key: The name of the memory component in which to write
        records of events.
      num_events_to_retrieve: The number of events to retrieve.
      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