requestLLMMultiple

expect open suspend override fun requestLLMMultiple(message: String): List<Message.Response>(source)

Sends a message to a Large Language Model (LLM) and gets multiple LLM responses with tool calls enabled. The message becomes part of the current prompt, and multiple responses from the LLM are collected.

Return

A list of LLM responses.

Parameters

message

The content of the message to be sent to the LLM.

fun requestLLMMultiple(message: String, executorService: ERROR CLASS: Symbol not found for ExecutorService?? = null): List<Message.Response>(source)

Sends a request to the Large Language Model (LLM) and retrieves multiple responses.

Return

A list of Message.Response objects containing the LLM responses to the provided message.

Parameters

message

The input message to be sent to the LLM.

executorService

An optional ExecutorService instance for managing thread execution. Defaults to null.