langgraph.json
), a file that specifies dependencies, and an optional .env
file that specifies environment variables.
This guide shows a typical structure of an application and shows how the required information to deploy an application using the LangGraph Platform is specified.
langgraph.json
) that specifies the dependencies, graphs, and environment variables to use for the application.langgraph.json
file is a JSON file that specifies the dependencies, graphs, environment variables, and other settings required to deploy a LangGraph application.
See the LangGraph configuration file reference for details on all supported keys in the JSON file.
langgraph.json
in the current directory.langchain_openai
package../your_package/your_file.py
with the variable variable
..env
file.requirements.txt
, pyproject.toml
, or package.json
).dependencies
key in the LangGraph configuration file that specifies the dependencies required to run the LangGraph application.dockerfile_lines
key in the LangGraph configuration file.graphs
key in the LangGraph configuration file to specify which graphs will be available in the deployed LangGraph application.
You can specify one or more graphs in the configuration file. Each graph is identified by a name (which should be unique) and a path for either: (1) the compiled graph or (2) a function that makes a graph is defined.
env
key of the LangGraph configuration file.
For a production deployment, you will typically want to configure the environment variables in the deployment environment.