docs: Various updates to LangGraph Cloud docs (#805)

* Change LangGraph Deploy to LangGraph Cloud in CLI reference.

* Update main README to link to Cloud docs. Update How-to Guide link in Cloud index page.

* Create Environments Variable reference page.

* Add Authentication to Conceptual Guide.

* Update setup how-to to refer back to CompiledGraph variable name.

* Update how-to notebooks for double texting.

* Add warning about setting top-level variable for CompiledGraph.
This commit is contained in:
Andrew Nguonly
2024-06-25 10:52:23 -07:00
committed by GitHub
parent 7490b2b38b
commit 11bf3bde54
13 changed files with 59 additions and 180 deletions
+6 -1
View File
@@ -22,7 +22,7 @@ my-app/
## Specify Environment Variables
Environment variables can optionally be specified in a file (e.g. `.env`).
Environment variables can optionally be specified in a file (e.g. `.env`). See the [Environment Variables reference](../reference/env_var.md) to configure additional variables for a deployment.
Example `.env` file:
```
@@ -57,6 +57,9 @@ graph_workflow.set_entry_point("agent")
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.
Example file directory:
```
my-app/
@@ -84,6 +87,8 @@ Example `langgraph.json` file:
}
```
Note that the variable name of the `CompiledGraph` appears at the end of the value of each subkey in the top-level `graphs` key (i.e. `:<variable_name>`).
Example file directory:
```
my-app/