Single line of code
You can get your prompt with a single line of code.Get a specific Tag
You can retrieve a specific tag of a prompt by providing the tag parameter.If both version and tag are provided, version takes precedence.
If neither is provided, the system attempts to find the
production tagged versionGet a specific Version
You can retrieve a specific version of a prompt by providing the version parameter.Replace Variables
If your prompt contains variables (e.g.,{{name}}), you can replace them with actual values when retrieving the prompt:
Returned data
When you retrieve a prompt, the SDK returns the prompt (user and system) along with its model configuration.Example response
Response example