Aller au contenu principal

Class: PromptMixin

Hierarchy

Constructors

constructor

new PromptMixin(): PromptMixin

Returns

PromptMixin

Methods

_getPromptModules

_getPromptModules(): Record<string, any>

Returns

Record<string, any>

Defined in

packages/core/src/prompts/Mixin.ts:82


_getPrompts

_getPrompts(): PromptsDict

Returns

PromptsDict

Defined in

packages/core/src/prompts/Mixin.ts:78


_updatePrompts

_updatePrompts(promptsDict): void

Parameters

NameType
promptsDictPromptsDict

Returns

void

Defined in

packages/core/src/prompts/Mixin.ts:86


getPrompts

getPrompts(): PromptsDict

Returns all prompts from the mixin and its modules

Returns

PromptsDict

Defined in

packages/core/src/prompts/Mixin.ts:27


updatePrompts

updatePrompts(promptsDict): void

Updates the prompts in the mixin and its modules

Parameters

NameType
promptsDictPromptsDict

Returns

void

Defined in

packages/core/src/prompts/Mixin.ts:48


validatePrompts

validatePrompts(promptsDict, moduleDict): void

Validates the prompt keys and module keys

Parameters

NameType
promptsDictPromptsDict
moduleDictModuleDict

Returns

void

Defined in

packages/core/src/prompts/Mixin.ts:10