Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

562 B
Raw Blame
/**
 * Lobe Bench and the Evaluation Lab share the eval tables (benchmarks,
 * datasets, experiments, runs). A benchmark or experiment created for Lobe
 * Bench carries `metadata.kind = 'lobe-bench'`; each surface lists only its
 * own side, so the shared storage never shows through.
 */
export const LOBE_BENCH_KIND = 'lobe-bench';

export const isLobeBenchKind = (item?: { metadata?: unknown } | null): boolean =>
  !!item &&
  typeof item.metadata === 'object' &&
  item.metadata !== null &&
  (item.metadata as { kind?: unknown }).kind === LOBE_BENCH_KIND;