requestLLMForceOneTool

fun requestLLMForceOneTool(tool: ERROR CLASS: Symbol not found for ToolDescriptor, executorService: ExecutorService? = null): ERROR CLASS: Symbol not found for Message.Response(source)

Sends a request to the language model and forces it to use exactly one specific tool, identified by a ToolDescriptor.

Return

the response from the language model containing the forced tool call

Parameters

tool

the tool descriptor that the language model must use

executorService

an optional executor service for managing the execution context; if null, the default dispatcher is used


fun requestLLMForceOneTool(tool: ERROR CLASS: Symbol not found for Tool<*, *>, executorService: ExecutorService? = null): ERROR CLASS: Symbol not found for Message.Response(source)

Sends a request to the language model and forces it to use exactly one specific tool instance.

Return

the response from the language model containing the forced tool call

Parameters

tool

the tool instance that the language model must use

executorService

an optional executor service for managing the execution context; if null, the default dispatcher is used