Interrupt not showing in the latest version #10

Open
opened 2026-02-16 05:17:19 -05:00 by yindo · 1 comment
Owner

Originally created by @Saisiva123 on GitHub (Feb 3, 2025).

  1. It's not allowing me to resume the interrupt
  • Simple Code:
    from langgraph.graph import StateGraph, START
    from langgraph.types import interrupt
    from typing import TypedDict

class State(TypedDict):
foo: str

def my_node(state: State):
value = interrupt(f"Provide provide a new value. Previous value is: {state['foo']}")
return {"foo": value}

graph = StateGraph(State).add_node(my_node).add_edge(START, "my_node").add_edge("my_node", "my_node").compile()

  • Attached Image:
Image
Originally created by @Saisiva123 on GitHub (Feb 3, 2025). 1. It's not allowing me to resume the interrupt * Simple Code: from langgraph.graph import StateGraph, START from langgraph.types import interrupt from typing import TypedDict class State(TypedDict): foo: str def my_node(state: State): value = interrupt(f"Provide provide a new value. Previous value is: {state['foo']}") return {"foo": value} graph = StateGraph(State).add_node(my_node).add_edge(START, "my_node").add_edge("my_node", "my_node").compile() * Attached Image: <img width="1728" alt="Image" src="https://github.com/user-attachments/assets/74fac327-adda-42ad-8b15-b378fac256d4" />
Author
Owner

@XIAOke8698 commented on GitHub (Feb 17, 2025):

我也是,我跟着官网的例子和langgraph的入门教程。interrupt的方式都有好几种,而且示例都不完整。

@XIAOke8698 commented on GitHub (Feb 17, 2025): 我也是,我跟着官网的例子和langgraph的入门教程。interrupt的方式都有好几种,而且示例都不完整。
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-example#10