executeMultipleChoices

open suspend override fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor>): List<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.

model

The LLM model to use for execution.

Throws

If no client is found for the model's provider and no fallback settings are configured.