requestLLMForceOneTool
suspend fun AIAgentFunctionalContext.requestLLMForceOneTool(message: String, tool: ToolDescriptor): Message.Response(source)
Sends a message to a Large Language Model (LLM) and forces it to use a specific tool. The message becomes part of the current prompt, and the LLM is instructed to use only the specified tool.
Return
The LLM response containing the tool call.
Parameters
message
The content of the message to be sent to the LLM.
tool
The tool descriptor that the LLM must use.
suspend fun AIAgentFunctionalContext.requestLLMForceOneTool(message: String, tool: Tool<*, *>): Message.Response(source)
Sends a message to a Large Language Model (LLM) and forces it to use a specific tool. The message becomes part of the current prompt, and the LLM is instructed to use only the specified tool.
Return
The LLM response containing the tool call.
Parameters
message
The content of the message to be sent to the LLM.
tool
The tool that the LLM must use.