Merge pull request #586 from langchain-ai/nfcampos-patch-1

copy path_map when passed to add_conditional_edge
This commit is contained in:
Nuno Campos
2024-06-04 19:54:30 -07:00
committed by GitHub
+1 -1
View File
@@ -207,7 +207,7 @@ class Graph:
)
# coerce path_map to a dictionary
if isinstance(path_map, dict):
pass
path_map = path_map.copy()
elif isinstance(path_map, list):
path_map = {name: name for name in path_map}
elif rtn_type := get_type_hints(path).get("return"):