Skip to content

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

455 B
Raw Blame
export const PROMPT_TABS = {
  VERSIONS: "versions",
  METRICS: "metrics",
} as const;

export const getPromptTabs = (projectId: string, promptName: string) => [
  {
    value: PROMPT_TABS.VERSIONS,
    label: "Versions",
    href: `/project/${projectId}/prompts/${encodeURIComponent(promptName)}`,
  },
  {
    value: PROMPT_TABS.METRICS,
    label: "Metrics",
    href: `/project/${projectId}/prompts/${encodeURIComponent(promptName)}/metrics`,
  },
];