langgraph.json), a file that specifies dependencies, and an optional .env file that specifies environment variables.langgraph.json )、一个指定依赖关系的文件,以及一个可选的 .env 文件(指定环境变量)组成。
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 ),用于指定应用程序所需的依赖项、图和环境变量。langgraph.json file is a JSON file that specifies the dependencies, graphs, environment variables, and other settings required to deploy a LangGraph application.langgraph.json 文件是一个 JSON 文件,用于指定部署 LangGraph 应用所需的依赖项、图、环境变量和其他设置。
See the LangGraph configuration file reference for details on all supported keys in the JSON file.langgraph.json in the current directory.langgraph.json 。langchain_openai package.langchain_openai 包。./your_package/your_file.py with the variable variable../your_package/your_file.py 加载,变量为 variable 。.env file..env 文件加载。requirements.txt, pyproject.toml, or package.json).requirements.txt 、 pyproject.toml 或 package.json )。dependencies key in the LangGraph configuration file that specifies the dependencies required to run the LangGraph application.dependencies 键,用于指定运行 LangGraph 应用所需的依赖项。dockerfile_lines key in the LangGraph configuration file.dockerfile_lines 键在 LangGraph 配置文件中指定。graphs key in the LangGraph configuration file to specify which graphs will be available in the deployed LangGraph application.graphs 键指定部署的 LangGraph 应用中将可用的图。
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.env 键中配置环境变量。
For a production deployment, you will typically want to configure the environment variables in the deployment environment.