requestLLM

suspend fun requestLLM(message: String): Message.Assistant(source)

Sends a message to a Large Language Model (LLM) and optionally allows the use of tools during the LLM interaction. The message becomes part of the current prompt, and the LLM's response is processed accordingly, either with or without tool integrations based on the provided parameters. Corresponds to nodeLLMRequestWithUserText.

Parameters

message

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