Class: BaseSelector
Hierarchy
-
↳
BaseSelector
Constructors
constructor
• new BaseSelector(): BaseSelector
Returns
Inherited from
Methods
_getPromptModules
▸ _getPromptModules(): Record
<string
, any
>
Returns
Record
<string
, any
>
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:83
_getPrompts
▸ _getPrompts(): PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:79
_select
▸ _select(choices
, query
): Promise
<SelectorResult
>
Parameters
Name | Type |
---|---|
choices | ToolMetadataOnlyDescription [] |
query | QueryBundle |
Returns
Promise
<SelectorResult
>
Defined in
packages/core/src/selectors/base.ts:34
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:87
getPrompts
▸ getPrompts(): PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:27
select
▸ select(choices
, query
): Promise
<SelectorResult
>
Parameters
Name | Type |
---|---|
choices | MetadataType [] |
query | MessageContent | QueryBundle |
Returns
Promise
<SelectorResult
>
Defined in
packages/core/src/selectors/base.ts:28
updatePrompts
▸ updatePrompts(promptsDict
): void
Updates the prompts in the mixin and its modules
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:48
validatePrompts
▸ validatePrompts(promptsDict
, moduleDict
): void
Validates the prompt keys and module keys
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
moduleDict | ModuleDict |
Returns
void