def __init__(
      self,
      model: language_model.LanguageModel,
      player_name: str,
      context_fn: Callable[[], str],
      clock: game_clock.GameClock,
      name: str = 'Question',
      question: str = DEFAULT_QUESTION,
      scale: Sequence[str] = DEFAULT_SCALE,
      verbose: bool = False,
      measurements: measurements_lib.Measurements | None = None,
      channel: str = DEFAULT_CHANNEL_NAME,
  ):
    """Initializes the component.

    Args:
      model: The model (LLM) to use.
      player_name: The name of the player.
      context_fn: The function to get the parent state (typically a player)
      clock: The clock of the simulation.
      name: The name of the component.
      question: The question to ask. Might have the formatting "{player_name}"
        which will be replaced by the player's name.
      scale: The possible answer options for the question.
      verbose: whether to `print` the outcome.
      measurements: the measurements object to publish data.
      channel: Name of the channel to publish measurements to.
    """
    self._model = model
    self._player_name = player_name
    self._context_fn = context_fn
    self._clock = clock
    self._name = name
    self._question = question
    if scale:
      self._scale = list(scale)
    else:
      raise ValueError('scale must be specified.')
    self._verbose = verbose
    self._measurements = measurements
    self._channel = channel
    # Get the channel so it is initialized. This is not strictly necessary, but
    # enables us to know which channels exist after initialization of agents and
    # GM.
    if self._measurements:
      self._measurements.get_channel(self._channel)

    self._timestep = 0
Initializes the component.

    Args:
      model: The model (LLM) to use.
      player_name: The name of the player.
      context_fn: The function to get the parent state (typically a player)
      clock: The clock of the simulation.
      name: The name of the component.
      question: The question to ask. Might have the formatting "{player_name}"
        which will be replaced by the player's name.
      scale: The possible answer options for the question.
      verbose: whether to `print` the outcome.
      measurements: the measurements object to publish data.
      channel: Name of the channel to publish measurements to.
    
concordia/deprecated/metrics/uncertainty_scale_question.py