🪢 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
fix(mcp): Improve description for 'latest' label (#13937)
Ben Bachemb7bf898d4a03
diff --git a/web/src/features/mcp/features/prompts/tools/updatePromptLabels.ts b/web/src/features/mcp/features/prompts/tools/updatePromptLabels.tsindex 1251afc685..2ad6515f74 100644--- a/web/src/features/mcp/features/prompts/tools/updatePromptLabels.ts+++ b/web/src/features/mcp/features/prompts/tools/updatePromptLabels.ts@@ -32,7 +32,7 @@ const UpdatePromptLabelsBaseSchema = z.object({newLabels: z.array(z.string()).describe(- "Array of new labels to assign to the prompt version (can be empty to remove all labels)",+ "Array of new labels to assign to the prompt version (can be empty to remove all labels). The 'latest' label is auto-managed and cannot be supplied.",),});diff --git a/web/src/features/mcp/features/prompts/validation.ts b/web/src/features/mcp/features/prompts/validation.tsindex 82cc44f19f..841c222c30 100644--- a/web/src/features/mcp/features/prompts/validation.ts+++ b/web/src/features/mcp/features/prompts/validation.ts@@ -83,4 +83,6 @@ export const ParamNewLabels = z.refine((labels) => !labels.includes(LATEST_PROMPT_LABEL), {message: "Label 'latest' is always assigned to the latest prompt version",})- .describe("Array of new labels to assign to the prompt version");+ .describe(+ "Array of new labels to assign to the prompt version. The 'latest' label is auto-managed and cannot be supplied.",+ );