langchain/callbacks/comet_ml_callback.py/CometCallbackHandler/_log_text_metrics
class CometCallbackHandler:    def _log_text_metrics(self, metrics: Sequence[dict], step: int) -> None:
        if not metrics:
            return

        metrics_summary = _summarize_metrics_for_generated_outputs(metrics)
        for key, value in metrics_summary.items():
            self.experiment.log_metrics(value, prefix=key, step=step)