def __init__(
      self,
      model: language_model.LanguageModel,
      player_names: Sequence[str],
      components: Sequence[str] = (),
      call_to_next_action_spec: str = DEFAULT_CALL_TO_NEXT_ACTION_SPEC,
      next_acting_component_key: str = DEFAULT_NEXT_ACTING_COMPONENT_KEY,
      pre_act_label: str = DEFAULT_NEXT_ACTION_SPEC_PRE_ACT_LABEL,
  ):
    """Initializes the component.

    Args:
      model: The language model to use for the component.
      player_names: Names of players to choose from.
      components: Keys of components to condition the action spec on.
      call_to_next_action_spec: prompt to use for the game master to decide on
        what action spec to use for the next turn. Will be formatted to
        substitute {name} for the name of the player whose turn is next.
      next_acting_component_key: The name of the NextActing component to use
        to get the name of the player whose turn is next.
      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._components = components
    self._call_to_next_action_spec = call_to_next_action_spec
    self._next_acting_component_key = next_acting_component_key
    self._pre_act_label = pre_act_label
Initializes the component.

    Args:
      model: The language model to use for the component.
      player_names: Names of players to choose from.
      components: Keys of components to condition the action spec on.
      call_to_next_action_spec: prompt to use for the game master to decide on
        what action spec to use for the next turn. Will be formatted to
        substitute {name} for the name of the player whose turn is next.
      next_acting_component_key: The name of the NextActing component to use
        to get the name of the player whose turn is next.
      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/next_acting.py