mirror of
https://github.com/langchain-ai/langgraph-example.git
synced 2026-07-21 09:05:22 -04:00
Interrupt not showing in the latest version #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Saisiva123 on GitHub (Feb 3, 2025).
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()
@XIAOke8698 commented on GitHub (Feb 17, 2025):
我也是,我跟着官网的例子和langgraph的入门教程。interrupt的方式都有好几种,而且示例都不完整。