Relevant Source Files
src/prompts/getPrompt.tsfor the exact selector shape
Create A Prompt
Fetch By Selector
prompt can be selected by { name }, { name, tag }, or { versionId }.
Manage Version Tags
prompt.versionId; the tag can be attached to any version of that prompt.
Tag upserts require Phoenix 8.22.0 or later. Tag deletion requires Phoenix 13.20.0 or later.
Update Description And Metadata
promptIdentifier is a prompt name or ID. Omit a field to leave it unchanged, and pass description: null to clear it. metadata replaces the existing metadata object as a whole rather than merging into it.
Requires a Phoenix server on 19.18.0 or later.
Delete A Prompt
prompt takes the same selector style as getPrompt, narrowed to the two selectors that identify a prompt rather than one of its versions: { name } and { promptId }. Passing a version selector — { versionId }, or { name, tag } — rejects instead of falling back to the whole prompt, so a variable holding a version never deletes more than you named.
Deletion cascades: every version of the prompt, along with its version tags and labels, is removed with it, and the deletion cannot be undone. A prompt that does not exist rejects with Prompt not found: <identifier>.
Requires a Phoenix server on 13.20.0 or later.
Convert To Another SDK
sdk targets:
aiopenaianthropic
Source Map
src/prompts/createPrompt.tssrc/prompts/deletePrompt.tssrc/prompts/deletePromptVersionTag.tssrc/prompts/getPrompt.tssrc/prompts/listPrompts.tssrc/prompts/updatePrompt.tssrc/prompts/upsertPromptVersionTag.tssrc/utils/resolvePromptVersionId.tssrc/prompts/sdks/toSDK.tssrc/types/prompts.ts

