executeMultipleChoices

open suspend override fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): LLMChoice(source)

Executes a given prompt using the specified tools and model and returns a list of model choices.

This legacy extension point is kept open for existing subclasses. New subclasses should prefer overriding the ResolvedModel-based overload. If this method is overridden without calling super, resolveModel is bypassed.


open suspend override fun executeMultipleChoices(prompt: Prompt, resolvedModel: ResolvedModel, tools: List<ToolDescriptor>): LLMChoice(source)

Executes a given prompt using the specified tools and model and returns a list of model choices.

Return

A list of LLMChoice objects containing the choices generated based on the prompt.

Parameters

prompt

The Prompt to be executed, containing the input messages and parameters.

tools

A list of ToolDescriptor objects representing external tools available for use during execution.

resolvedModel

The resolved LLM model to use for execution.