Skip to main content

Methods

Get a prompt by its ID.

Parameters

str
required

Returns

GetPromptResponse
🔗 GetPromptResponseThe prompt data

Usage

Delete a prompt by its ID.

Parameters

str
required

Returns

EmptyResponse
🔗 EmptyResponseEmpty response indicating successful deletion

Usage

List prompts with optional filtering by FQN, ML Repo, or name.

Parameters

typing.Optional[str]
Fully qualified name to filter prompts by (format: ‘chat_prompt://’)
typing.Optional[str]
ID of the ML Repo to filter prompts by
typing.Optional[str]
Name of the prompt to filter by
typing.Optional[int]
Number of prompts to skip for pagination
typing.Optional[int]
Maximum number of prompts to return
typing.Optional[bool]
Whether to include prompts that have no versions

Returns

SyncPager[Prompt, ListPromptsResponse]
🔗 ListPromptsResponseList of prompts matching the query with pagination information

Usage

Create or update a prompt version.

Parameters

ChatPromptManifest
required
🔗 ChatPromptManifestManifest containing metadata for the prompt to apply

Returns

GetPromptVersionResponse
🔗 GetPromptVersionResponseThe created or updated prompt version

Usage

Get Prompt by FQN.

Parameters

str
required
FQN of the prompt

Returns

GetPromptResponse

Usage