Home > llm-ops > AgentPromptTemplate
AgentPromptTemplate class
Signature:
typescript
export declare class AgentPromptTemplate extends BasePromptTemplateexport declare class AgentPromptTemplate extends BasePromptTemplateExtends: BasePromptTemplate
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (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
| Property | Modifiers | Type | Description |
|---|---|---|---|
| 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
| Method | Modifiers | Description |
|---|---|---|
| format() | ||
| formatEvaluateItem(items) |