انتقل إلى المحتوى الرئيسي

Class: BaseSelector

Hierarchy

Constructors

constructor

new BaseSelector(): BaseSelector

Returns

BaseSelector

Inherited from

PromptMixin.constructor

Methods

_getPromptModules

_getPromptModules(): Record<string, any>

Returns

Record<string, any>

Inherited from

PromptMixin._getPromptModules

Defined in

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


_getPrompts

_getPrompts(): PromptsDict

Returns

PromptsDict

Inherited from

PromptMixin._getPrompts

Defined in

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


_select

_select(choices, query): Promise<SelectorResult>

Parameters

NameType
choicesToolMetadataOnlyDescription[]
queryQueryBundle

Returns

Promise<SelectorResult>

Defined in

packages/core/src/selectors/base.ts:42


_updatePrompts

_updatePrompts(promptsDict): void

Parameters

NameType
promptsDictPromptsDict

Returns

void

Inherited from

PromptMixin._updatePrompts

Defined in

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


getPrompts

getPrompts(): PromptsDict

Returns all prompts from the mixin and its modules

Returns

PromptsDict

Inherited from

PromptMixin.getPrompts

Defined in

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


select

select(choices, query): Promise<SelectorResult>

Parameters

NameType
choicesMetadataType[]
queryQueryType

Returns

Promise<SelectorResult>

Defined in

packages/core/src/selectors/base.ts:36


updatePrompts

updatePrompts(promptsDict): void

Updates the prompts in the mixin and its modules

Parameters

NameType
promptsDictPromptsDict

Returns

void

Inherited from

PromptMixin.updatePrompts

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

Inherited from

PromptMixin.validatePrompts

Defined in

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