llmRequestForceOneTool

Creates an AI agent node that processes a language model request while forcefully utilizing a specific tool.

Return

An instance of AIAgentNodeBase configured to process the language model request with input of type String and output of type Message.Response, ensuring the specified tool is used.

Parameters

name

The optional name of the node. If null, the name will be automatically generated.

tool

A descriptor of the tool that must be utilized during the request execution.


Creates an AI agent node that forces the execution of a single specified tool during the handling of a language model request.

Return

An instance of AIAgentNodeBase configured to process language model requests with input of type String and output of type Message.Response.

Parameters

name

An optional name for the node. If null, a default name will be generated.

tool

The tool to be used during request execution. This tool is mandatory for the node's operation.