MCPcopy Create free account
hub / github.com/LangGraph-GUI/LangGraph-GUI-backend / NodeData

Class NodeData

src/NodeData.py:16–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15@dataclass
16class NodeData(Serializable):
17
18 # Graph Feature
19 uniq_id: str = ""
20
21 # Store external properties in a dictionary
22 ext: dict = field(default_factory=dict)
23
24
25 nexts: List[int] = field(default_factory=list)
26
27 # LangGraph attribute
28 # "START", "STEP", "TOOL", "CONDITION"
29 type: str = "START"
30
31 # AGENT
32 name: str = ""
33 description: str = ""
34
35 # STEP
36 tool: str = ""
37
38 # CONDITION
39 true_next: Optional[int] = None
40 false_next: Optional[int] = None
41
42
43 def to_dict(self):
44 return asdict(self)
45
46 @classmethod
47 def from_dict(cls, data):
48 return cls(**data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected