ChoiceSelectionStrategy

Represents a strategy for selecting a choice from a list of available options for a given prompt.

Inheritors

Types

Link copied to clipboard

Represents the default implementation of the ChoiceSelectionStrategy interface.

Functions

Link copied to clipboard
abstract suspend fun choose(prompt: Prompt, choices: List<LLMChoice>): LLMChoice

Selects one choice from a list of available LLMChoice options based on a given prompt.