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 the 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 resolved model and returns the model choices. Preferred extension point for subclasses that want to preserve this executor's model-resolution flow.

Return

An LLMChoice containing the choices generated based on the prompt.

Parameters

prompt

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

resolvedModel

The resolved LLM model to use for execution.

tools

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