Skip to content

PromptTemplateBuilder

new PromptTemplateBuilder(options): PromptTemplateBuilder;
Parameter Type

options

PromptTemplateBuilderOptions

PromptTemplateBuilder

addTerm(
name,
description,
synonyms?): this;
Parameter Type

name

string

description

string

synonyms?

string[]

this


briefSpeech(content?): this;
Parameter Type

content

string

this


build(): PromptTemplate;

PromptTemplate


characterNormalization(content): this;
Parameter Type

content

string

this


custom(
name,
content,
priority?): this;
Parameter Type

name

string

content

string

priority?

number

this


default(tools?): this;
Parameter Type

tools?

ToolSet

this


enableVoiceRules(config?): this;
Parameter Type

config?

VoiceRulesConfig

this


errorHandling(content): this;
Parameter Type

content

string

this


glossary(terms): this;
Parameter Type

terms

GlossaryTerm[]

this


goal(content): this;
Parameter Type

content

string

this


guardrails(content): this;
Parameter Type

content

string

this


handoff(instruction?): this;
Parameter Type

instruction

string

this


injectTodayDate(enabled?): this;
Parameter Type Default value

enabled

boolean

true

this


personality(content): this;
Parameter Type

content

string

this


tone(content): this;
Parameter Type

content

string

this


toolGuideline(guideline): this;
Parameter Type

guideline

ToolGuideline

this


tools(content): this;
Parameter Type

content

string

this


toolsSet(tools): this;
Parameter Type

tools

ToolSet

this


voiceRules(config?): this;
Parameter Type

config?

VoiceRulesConfig

this