def METHOD_NAME(
    self,
    teacher_action: Message,
    labels: Optional[Tuple[str]],
    model_response: Message,
):
    super().METHOD_NAME(teacher_action, labels, model_response)
    if 'knowledge_response' in model_response:
        self.metrics.add(
            'predicted_knowledge_f1',
            F1Metric.compute(
                model_response['knowledge_response'],
                [model_response['text']],
            ),
        )
        self.metrics.add(
            'knowledge_response_f1',
            F1Metric.compute(
                model_response['knowledge_response'],
                [teacher_action['checked_sentence']],
            ),
        )