executeMultipleChoices

fun executeMultipleChoices(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor> = emptyList(), executorService: ExecutorService? = null): List<LLMChoice>(source)

Executes a prompt and returns a list of LLM choices.

Return

List of LLM choices

Parameters

prompt

The prompt to execute

tools

Optional list of tools that can be used by the LLM

model

The LLM model to use

executorService

An optional ExecutorService that can be provided to control the execution context.