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