Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/oss/langgraph/sql-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down