docs: add how to for graph factory + update cli

This commit is contained in:
vbarda
2024-07-24 18:14:34 -04:00
parent ebe01c2639
commit 2ceac211e7
4 changed files with 91 additions and 3 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ agent = graph_workflow.compile()
```
!!! warning "Assign `CompiledGraph` to Variable"
The build process for LangGraph Cloud requires that the `CompiledGraph` object be assigned to a variable at the top-level of a Python module.
The build process for LangGraph Cloud requires that the `CompiledGraph` object be assigned to a variable at the top-level of a Python module (alternatively, you can provide [a function that creates a graph](./graph_rebuild.md)).
Example file directory:
```