def __init__(
      self,
      state: str,
      pre_act_label: str = DEFAULT_PRE_ACT_LABEL,
  ):
    """Initializes the agent.

    Args:
      state: the state of the component.
      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._state = state
Initializes the agent.

    Args:
      state: the state of the component.
      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/agent/constant.py