mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-20 14:42:28 +02:00
- Each iteration of the graph is one single iteration in Pregel (ie. no more "{node}:edges" nodes)
- .update_state() now acts exactly as one of the nodes in the graph (which can be chosen), which makes human-in-the-loop scenarios where you want to override the actions of a specific node a lot easier to build
- Graph/StateGraph.compile() now delegate adding nodes/edges/etc to dedicated methods that operate on the Pregel object, which is 90% of the way towards dynamic graphs where nodes and edges can be added during execution
7 lines
162 B
Python
7 lines
162 B
Python
class AnyStr(str):
|
|
def __init__(self) -> None:
|
|
super().__init__()
|
|
|
|
def __eq__(self, other: object) -> bool:
|
|
return isinstance(other, str)
|