Skip to main content

Methods

Apply tags to a prompt version.

Parameters

str
required
ID of the prompt version to apply tags to
typing.Sequence[str]
required
List of tags to apply to the prompt version
typing.Optional[bool]
Whether to overwrite existing tags if they conflict

Returns

EmptyResponse
🔗 EmptyResponseEmpty response indicating successful tag application

Usage

Get a prompt version by its ID.

Parameters

str
required

Returns

GetPromptVersionResponse
🔗 GetPromptVersionResponseThe prompt version data

Usage

Delete a prompt version by its ID.

Parameters

str
required

Returns

EmptyResponse
🔗 EmptyResponseEmpty response indicating successful deletion

Usage

List prompt versions with optional filtering by tag, FQN, prompt ID, ML Repo, name, or version.

Parameters

typing.Optional[str]
Tag to filter prompt versions by
typing.Optional[str]
Fully qualified name to filter prompt versions by (format: ‘chat_prompt://’ or ‘chat_prompt://:’)
typing.Optional[str]
ID of the prompt to filter versions by
typing.Optional[str]
ID of the ML Repo to filter prompt versions by
typing.Optional[str]
Name of the prompt to filter versions by
typing.Optional[int]
Version number (positive integer) or ‘latest’ to filter by specific version
typing.Optional[int]
Number of prompt versions to skip for pagination
typing.Optional[int]
Maximum number of prompt versions to return

Returns

SyncPager[PromptVersion, ListPromptVersionsResponse]
🔗 ListPromptVersionsResponseList of prompt versions matching the query with pagination information

Usage

Get Prompt Version by FQN.

Parameters

str
required
FQN of the prompt version

Returns

GetPromptVersionResponse
🔗 GetPromptVersionResponsePrompt version details

Usage