choose

open suspend override fun choose(prompt: Prompt, choices: LLMChoice): Message.Assistant(source)

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

Return

The selected Message.Response 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 LLMChoice options from which one will be chosen.