Class: LLMSingleSelector
A selector that uses the LLM to select a single choice from a list of choices.
Extends
Constructors
new LLMSingleSelector()
new LLMSingleSelector(
init
):LLMSingleSelector
Parameters
• init
• init.llm: LLMPredictorType
• init.outputParser?: BaseOutputParser
<StructuredOutput
<Answer
[]>>
• init.prompt?
Returns
Overrides
Source
packages/core/src/selectors/llmSelectors.ts:123
Properties
llm
llm:
LLMPredictorType
Source
packages/core/src/selectors/llmSelectors.ts:119
outputParser
outputParser:
BaseOutputParser
<StructuredOutput
<Answer
[]>>
Source
packages/core/src/selectors/llmSelectors.ts:121