Skip to content

Commit 9fac65a

Browse files
authored
Add instructions to redefine the tool node (#1548)
fixes DOC-473
1 parent 7957e65 commit 9fac65a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/oss/langgraph/sql-agent.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@ def run_query_tool_with_interrupt(config: RunnableConfig, **tool_input):
727727
raise ValueError(f"Unsupported interrupt response type: {response['type']}")
728728

729729
return tool_response
730+
731+
# Redefine the tool node to use the interrupt version
732+
run_query_node = ToolNode([run_query_tool_with_interrupt], name="run_query") # [!code highlight]
730733
```
731734
:::
732735
:::js

0 commit comments

Comments
 (0)