executeMultipleChoicesBlocking

@JvmName(name = "executeMultipleChoices")
fun executeMultipleChoicesBlocking(prompt: Prompt, model: LLModel, tools: List<ToolDescriptor> = emptyList()): LLMChoice(source)

Receives multiple independent choices from the LLM. The method is implemented only for some specific providers which support multiple LLM choices.

Return

A list of LLMChoice objects representing the responses generated by the LLM.

Parameters

prompt

The prompt containing input messages and parameters to guide the LLM execution.

model

The LLM to be used for processing the prompt.

tools

A list of ToolDescriptor objects that define the tools available for the execution.


@JvmName(name = "executeMultipleChoices")
fun executeMultipleChoicesBlocking(prompt: Prompt, resolvedModel: ResolvedModel, tools: List<ToolDescriptor> = emptyList()): LLMChoice(source)

Receives multiple independent choices from an already-resolved model.

Return

An LLMChoice representing the responses generated by the LLM.

Parameters

prompt

The prompt containing input messages and parameters to guide the LLM execution.

resolvedModel

The ResolvedModel returned by resolveModel.

tools

A list of ToolDescriptor objects available during the execution.