The
ax prompts commands are currently in BETA. The API may change without notice. A one-time warning is emitted on first use.ax prompts commands let you create and manage prompt templates and their versions on the Arize platform.
ax prompts list
List prompts in a space.
Examples:
ax prompts create
Create a prompt with an initial version. Pass messages as a path to a JSON file or inline JSON.
Messages must be a non-empty JSON array. Each message object needs a
role and optionally content, tool_call_id, or tool_calls:
ax prompts get
Get a prompt by name or ID. Optionally resolve a specific version via --version-id or --label. If neither is supplied, the latest version is returned.
Examples:
ax prompts update
Update a prompt’s description.
Example:
ax prompts delete
Delete a prompt and all its versions. This operation is irreversible.
Examples:
ax prompts list-versions
List versions for a prompt.
Example:
ax prompts create-version
Create a new version for an existing prompt. Pass messages as a path to a JSON file or inline JSON.
Example:
ax prompts get-version-by-label
Resolve a label to the prompt version it points to.
Example:
ax prompts set-version-labels
Set labels on a prompt version. Replaces all existing labels on the version with the provided list.
Examples:
ax prompts remove-version-label
Remove a label from a prompt version. This does not delete the version itself.
Example: