🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
export const PRODUCTION_LABEL = "production";
export const LATEST_PROMPT_LABEL = "latest";
export const COMMIT_MESSAGE_MAX_LENGTH = 500;
// Prompt name validation
export const PROMPT_NAME_MAX_LENGTH = 255;
export const RESERVED_PROMPT_NAME_NEW = "new";
// Static sibling pages of the /prompts/[[...folder]] catch-all route
// (web/src/pages/project/[projectId]/prompts/). Next.js resolves static
// routes before the catch-all, so a prompt with one of these exact names
// would have every link to it render the static page instead.
export const RESERVED_PROMPT_NAMES = [
RESERVED_PROMPT_NAME_NEW,
"metrics",
"prompt-detail",
] as const;
export const PROMPT_NAME_PIPE_RESTRICTION_REGEX = /^[^|]*$/;
export const PROMPT_NAME_PIPE_RESTRICTION_ERROR =
"Prompt name cannot contain '|' character";
// Prompt label validation
export const PROMPT_LABEL_MAX_LENGTH = 36;
export const PROMPT_LABEL_REGEX = /^[a-z0-9_\-.]+$/;
export const PROMPT_LABEL_REGEX_ERROR =
"Label must be lowercase alphanumeric with optional underscores, hyphens, or periods";