From ab478cb40f186fe133bb280f951fa64a41fa263a Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Tue, 15 Sep 2026 12:04:23 -0400 Subject: [PATCH] nit --- libs/prebuilt/langgraph/prebuilt/tool_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/prebuilt/langgraph/prebuilt/tool_node.py b/libs/prebuilt/langgraph/prebuilt/tool_node.py index 168e2a884..ea58982ad 100644 --- a/libs/prebuilt/langgraph/prebuilt/tool_node.py +++ b/libs/prebuilt/langgraph/prebuilt/tool_node.py @@ -136,8 +136,8 @@ class ToolCallRequest: Attributes: tool_call: Tool call dict with name, args, and id from model output. - If `tool_call["name"]` differs from `tool`, `tool_call["name"]` is - preferred as the authoritative source for what tool is executed. + If an interceptor edits `tool_call["name"]` so it differs from `tool`, + `tool_call["name"]` is authoritative for what tool is executed. tool: BaseTool instance to be invoked, or None if tool is not registered with the `ToolNode`. When tool is `None`, interceptors can handle the request without validation. If the interceptor calls `execute()`,