Arize Phoenix TS
    Preparing search index...
    • Update a prompt's description and/or metadata via PATCH /v1/prompts/{prompt_identifier}.

      Parameters

      Returns Promise<
          {
              description?: string
              | null;
              id: string;
              metadata?: { [key: string]: unknown } | null;
              name: string;
              source_prompt_id?: string | null;
          },
      >

      The updated prompt.

      Phoenix server >= 19.18.0

      import { updatePrompt } from "@arizeai/phoenix-client/prompts";

      const prompt = await updatePrompt({
      promptIdentifier: "my-prompt",
      description: "Production classifier",
      metadata: { team: "ml", env: "prod" },
      });

      // Clear the description only
      await updatePrompt({
      promptIdentifier: "my-prompt",
      description: null,
      });