Function: getPromptTemplate()
Parameters
options
Lookup options.id?
string
(Optional) Template ID to fetch.
name?
string
(Optional) Template name to resolve.
projectId?
string
(Optional) Project ID associated with template.
projectName?
string
(Optional) Project name associated with template.
version?
number
(Optional) Version number to fetch.
Returns
Promise<PromptTemplateVersion>
A promise that resolves to the requested template version.
Deprecated
PrefergetPrompt.
Retrieves a prompt template version using either an ID or name.