executeTool

Executes a tool and returns an AI agent node configured for tool execution.

Return

An instance of AIAgentNodeBase that handles tool execution with input of type Message.Tool.Call and output of type ReceivedToolResult.

Parameters

name

An optional name for the tool execution node. If null, a default name is generated.