Skip to content

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

322 B
Raw Blame
import type { AutomationDomain } from "@langfuse/shared";

/** Selects the first available automation for a new monitor. */
export function getInitialMonitorTriggerIds(
  automations: AutomationDomain[],
): string[] {
  const firstTriggerId = automations[0]?.trigger.id;
  return firstTriggerId ? [firstTriggerId] : [];
}