Passa al contenuto principale

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:83


_getPrompts

_getPrompts(): PromptsDict

Returns

PromptsDict

Defined in

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


_updatePrompts

_updatePrompts(promptsDict): void

Parameters

NameType
promptsDictPromptsDict

Returns

void

Defined in

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


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