requestLLMForceOneTool

Requests an LLM (Large Language Model) to forcefully utilize a specific tool during its operation.

Return

A response message received from the LLM after executing the enforced tool request.

Parameters

tool

A descriptor object representing the tool to be enforced for use by the LLM.


open suspend override fun requestLLMForceOneTool(tool: Tool<*, *>): Message.Response(source)

Requests the execution of a single specified tool, enforcing its use, and updates the prompt based on the generated response.

Return

The response generated after executing the provided tool.

Parameters

tool

The tool that will be enforced and executed. It contains the input and output types.