You can find the promptset_id when you click on Prompts -> <Your_Prompt_Registry> -> Prompt Registry ID
If no version is provided the live prompt in the registry is fetched. If there are no live prompts an error is thrown

A complete list of supported parameters for the GET promptset endpoint is provided below.

promptset_id
string
required

Id of the prompt registry. This can be found on the langtrace ui.

version
number

Prompt version to fetch from the prompt registry.

variables
object

Variables to replace in the prompt string. Usage is as follows: variables.<variable_name>=<variable_value>&variables.<variable_name>=<variable_value>

id
string
required

Prompt registry id

name
string
required

Prompt registry name

description
string
required

Prompt registry description

projectId
string
required

Id of the project this registry is associated to

prompts
Prompt[]
id
string
required

Id of the prompt

value
string
required

Prompt string

variables
string[]
required

Variable names in the prompt value

model
string
required

Name of the model being used

modelSettings
object
required

Settings configured on the model

version
number
required

Prompt version

live
boolean
required

Indicates if the prompt is live. Only one prompt in the registry can be live

tags
string[]
required

Tags associated with the prompt

spanId
string
required

If this prompt was traced using the langtrace sdk this will contain the id of the span otherwise it will be null

note
string
required

Notes associated with the prompt

createdAt
string
required

ISO 8601 date-time string

updatedAt
string
required

ISO 8601 date-time string

createdAt
string
required

ISO 8601 date-time string

updatedAt
string
required

ISO 8601 date-time string