PromptMixin
定义于:.build/typescript/packages/core/src/prompts/mixin.ts:7
new PromptMixin():
PromptMixin
PromptMixin
validatePrompts()
Section titled “validatePrompts()”validatePrompts(
promptsDict,moduleDict):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:8
promptsDict
Section titled “promptsDict”moduleDict
Section titled “moduleDict”void
getPrompts()
Section titled “getPrompts()”getPrompts():
PromptsRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:22
updatePrompts()
Section titled “updatePrompts()”updatePrompts(
prompts):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:39
void
_getPrompts()
Section titled “_getPrompts()”
abstractprotected_getPrompts():PromptsRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:68
_updatePrompts()
Section titled “_updatePrompts()”
abstractprotected_updatePrompts(prompts):void
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:69
void
_getPromptModules()
Section titled “_getPromptModules()”
abstractprotected_getPromptModules():ModuleRecord
Defined in: .build/typescript/packages/core/src/prompts/mixin.ts:78
返回当前模块中同样实现了 PromptMixin 的子模块字典(以便也能获取/设置它们的提示)。
如果没有子模块,可以为空。