Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt

Use this file to discover all available pages before exploring further.


Function: createPromptTemplate()

function createPromptTemplate(options: object): Promise<PromptTemplate>;
Defined in: src/utils/prompt-templates.ts

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

Prefer createPrompt. Creates a prompt template without enforcing unique names.