requestLLMForceOneTool
Sends a request to the language model while enforcing the use of a specific tool, and returns the response.
This method validates that the session is active and checks if the specified tool exists within the session's set of available tools. It updates the prompt configuration to enforce the selection of the specified tool before executing the request.
Return
The response from the language model as a Message.Response instance after processing the request with the enforced tool.
Parameters
The tool to be used for the request, represented by a ToolDescriptor instance. This parameter ensures that the language model utilizes the specified tool during the interaction.
Sends a request to the language model while enforcing the use of a specific tool, and returns the response.
This method ensures the session is active and updates the prompt configuration to enforce the selection of the specified tool before executing the request. It uses the provided tool as a focus for the language model to process the interaction.
Return
The response from the language model as a Message.Response instance after processing the request with the enforced tool.
Parameters
The tool to be used for the request, represented as an instance of Tool. This parameter ensures the specified tool is utilized during the LLM interaction.