diff --git a/src/oss/langgraph/sql-agent.mdx b/src/oss/langgraph/sql-agent.mdx index d824187cd6..b1461a2a98 100644 --- a/src/oss/langgraph/sql-agent.mdx +++ b/src/oss/langgraph/sql-agent.mdx @@ -727,6 +727,9 @@ def run_query_tool_with_interrupt(config: RunnableConfig, **tool_input): raise ValueError(f"Unsupported interrupt response type: {response['type']}") return tool_response + +# Redefine the tool node to use the interrupt version +run_query_node = ToolNode([run_query_tool_with_interrupt], name="run_query") # [!code highlight] ``` ::: :::js