requestLLMOnlyCallingTools

expect open suspend override fun requestLLMOnlyCallingTools(message: String): Message.Response(source)

Sends a message to a Large Language Model (LLM) that will only call tools without generating text responses. The message becomes part of the current prompt, and the LLM is instructed to only use tools.

Return

The LLM response containing tool calls.

Parameters

message

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

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

Executes a request to the LLM, restricting the process to only calling external tools as needed.

Return

The response generated by the LLM, encapsulated in a Message.Response object.

Parameters

message

The input message or query to be processed by the LLM.

executorService

Optional executor service to specify custom threading behavior; if null, a default executor is used.