We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55f9334 commit 4fa3f85Copy full SHA for 4fa3f85
docs.json
@@ -246,4 +246,4 @@
246
"youtube": "https://www.youtube.com/@jamesbriggs"
247
}
248
249
-}
+}
graphai/client-reference/graph.mdx
@@ -66,15 +66,15 @@ Adds an edge between two nodes that already exist in the graph.
66
#### compile
67
68
```python
69
-def compile() -> "Graph"
+def compile(*, strict: bool = False) -> Graph
70
```
71
72
Validate the graph:
73
- exactly one start node present (or Graph.start_node set)
74
- at least one end node present
75
- all edges reference known nodes
76
-- no cycles
77
- all nodes reachable from the start
+ (optional) **no cycles** when strict=True
78
Returns self on success; raises GraphCompileError otherwise.
79
80
#### get\_callback
0 commit comments