def _component_pre_act_display(self, key: str) -> str:
    """Returns the pre-act label and value of a named component."""
    return (
        f'  {self.get_component_pre_act_label(key)}: '
        f'{self.get_named_component_pre_act_value(key)}')
Returns the pre-act label and value of a named component.
concordia/components/agent/question_of_recent_memories.py