mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-08 02:37:52 +02:00
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:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user