fix: check for specific nodes first
This commit is contained in:
parent
acb542ab59
commit
d921983a00
1 changed files with 2 additions and 2 deletions
|
|
@ -120,12 +120,12 @@ class Graph:
|
||||||
**{t: MemoryNode for t in memory_creator.to_list()},
|
**{t: MemoryNode for t in memory_creator.to_list()},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if node_type in FILE_TOOLS:
|
||||||
|
return FileToolNode
|
||||||
if node_type in node_type_map:
|
if node_type in node_type_map:
|
||||||
return node_type_map[node_type]
|
return node_type_map[node_type]
|
||||||
if node_lc_type in node_type_map:
|
if node_lc_type in node_type_map:
|
||||||
return node_type_map[node_lc_type]
|
return node_type_map[node_lc_type]
|
||||||
if node_type in FILE_TOOLS:
|
|
||||||
return FileToolNode
|
|
||||||
return Node
|
return Node
|
||||||
|
|
||||||
def _build_nodes(self) -> List[Node]:
|
def _build_nodes(self) -> List[Node]:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue