llmRequestForceOneTool

fun llmRequestForceOneTool(name: String? = null, tool: ERROR CLASS: Symbol not found for ToolDescriptor): AIAgentNodeBase<String, ERROR CLASS: Symbol not found for Message.Assistant>(source)

A node that sends a user message and requests a response from the LLM, forcing the LLM to call the specified tool.

Parameters

name

Optional node name, defaults to delegate's property name.

tool

The ToolDescriptor of the tool to force the LLM to use.


fun llmRequestForceOneTool(name: String? = null, tool: ERROR CLASS: Symbol not found for Tool<*, *>): AIAgentNodeBase<String, ERROR CLASS: Symbol not found for Message.Assistant>(source)

A node that sends a user message and requests a response from the LLM, forcing the LLM to call the specified tool.

Parameters

name

Optional node name, defaults to delegate's property name.

tool

The Tool to force the LLM to use.