Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

319 B
Raw Blame
import { formatDistanceToNowStrict } from "date-fns";

/** Renders the most recent evaluator alert emission time. */
export function renderEvaluatorAlertLastFired(alertedAt: Date | null): string {
  return alertedAt
    ? `Last fired ${formatDistanceToNowStrict(alertedAt, { addSuffix: true })}`
    : "Never fired";
}