Function: createPromptTemplate()
Parameters
options
Creation request.name
string
Preferred template name.
projectId?
string
(Optional) Project ID associated with template.
projectName?
string
(Optional) Project name associated with template.
template
string | object[]
Template content as messages or plain text.
Returns
Promise<PromptTemplate>
A promise that resolves to the created template summary.
Deprecated
PrefercreatePrompt.
Creates a prompt template without enforcing unique names.