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:82
_getPrompts
▸ _getPrompts(): PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:78
_select
▸ _select(choices
, query
): Promise
<SelectorResult
>
Parameters
Name | Type |
---|---|
choices | ToolMetadataOnlyDescription [] |
query | QueryBundle |
Returns
Promise
<SelectorResult
>
Defined in
packages/core/src/selectors/base.ts:42
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
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
Defined in
packages/core/src/prompts/Mixin.ts:27
select
▸ select(choices
, query
): Promise
<SelectorResult
>
Parameters
Name | Type |
---|---|
choices | MetadataType [] |
query | QueryType |
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
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:48