choose

abstract suspend fun choose(prompt: Prompt, choices: List<LLMChoice>): LLMChoice(source)

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

Return

The selected LLMChoice from the provided list based on the implemented strategy.

Parameters

prompt

The Prompt containing the context or query for which a choice should be selected.

choices

A list of LLMChoice options from which one will be chosen.