nodeExecuteSingleTool
fun nodeExecuteSingleTool(name: String? = null, parallel: Boolean = false): AIAgentNodeDelegate<MessagePart.Tool.Call, ReceivedToolResult>(source)
A node that executes a single MessagePart.Tool.Call and returns the ReceivedToolResult without writing anything into the LLM session.
Parameters
name
Optional node name, defaults to delegate's property name.
parallel
Unused in the single-tool variant; kept for API consistency.
inline fun <ToolArg, TResult> nodeExecuteSingleTool(name: String? = null, tool: Tool<ToolArg, TResult>, doAppendPrompt: Boolean = true): AIAgentNodeDelegate<ToolArg, SafeTool.Result<TResult>>(source)
A node that calls a specific tool directly using the provided arguments.
Parameters
name
Optional node name.
tool
The tool to execute.
doAppendPrompt
Specifies whether to add tool call details to the prompt.