The parameters to update the prompt.
The updated prompt.
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,
});
Update a prompt's description and/or metadata via
PATCH /v1/prompts/{prompt_identifier}.