PromptExecutorWithChoiceSelection

constructor(executor: PromptExecutor, choiceSelectionStrategy: ChoiceSelectionStrategy)(source)

Parameters

executor

The underlying PromptExecutor responsible for performing the prompt execution and generating multiple response choices.

choiceSelectionStrategy

The strategy implementation that defines the logic for selecting and filtering the generated response choices.