requestLLM

fun requestLLM(message: String, allowToolCalls: Boolean = true, executorService: ExecutorService? = null): ERROR CLASS: Symbol not found for Message.Response(source)

Sends a request to the Large Language Model (LLM) and retrieves its response.

Return

A Message.Response object containing the message received from the LLM.

Parameters

message

The input message to be sent to the LLM.

allowToolCalls

Determines whether the LLM is allowed to use tools during its response generation. Defaults to true.

executorService

An optional ExecutorService instance that enables custom thread management for the request. Defaults to null.