Skip to content

Home > llm-ops > AgentPromptTemplate

AgentPromptTemplate class

Signature:

typescript
export declare class AgentPromptTemplate extends BasePromptTemplate
export declare class AgentPromptTemplate extends BasePromptTemplate

Extends: BasePromptTemplate

Constructors

ConstructorModifiersDescription
(constructor)({ role, desc, toneStyle, communicationStyle, level, field, keyRole, reasoning, rules, reflection, memory, humanSituation, language, other, evaluate, })Constructs a new instance of the AgentPromptTemplate class

Properties

PropertyModifiersTypeDescription
communicationStyle?communicationStyleType(Optional)
desc?string(Optional)
evaluate?TeacherEvaluateSchema(Optional)
field?string(Optional)
humanSituation?string(Optional)
keyRole?string(Optional)
language?languageType(Optional)
level?levelType(Optional)
memory?MemoryPromptTemplateSchema(Optional)
other?string(Optional)
reasoning?reasoningType(Optional)
reflection?ReflectionPromptTemplateSchema(Optional)
returnPrompt?messagesType(Optional)
role?string(Optional)
rules?string | string[](Optional)
toneStyle?toneStyleType(Optional)

Methods

MethodModifiersDescription
format()
formatEvaluateItem(items)

Released under the MIT License.