requestLLM
suspend fun AIAgentFunctionalContext.requestLLM(message: String, allowToolCalls: Boolean = true): Message.Response(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.
Parameters
message
The content of the message to be sent to the LLM.
allowToolCalls
Specifies whether tool calls are allowed during the LLM interaction. Defaults to true
.