langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.97k stars 131 forks source link

Environment variable value not being set in langgraph.json #146

Closed turtle3791 closed 1 month ago

turtle3791 commented 1 month ago

In project settings for environment variables I chose "Switch to values" And entered GOOGLE_APPLICATION_CREDENTIALS for name and /deps/__outer_backend_py/src/gcp-bq-proj1.json for value

However looking at langgraph.json I do not see the variable value(path). I only see the variable name (GOOGLE_APPLICATION_CREDENTIALS)

{ "dockerfile_lines": [], "graphs": { "my_agent": "./my_agent/main.py:graph" }, "env": [ "GOOGLE_APPLICATION_CREDENTIALS" ], "python_version": "3.11", "dependencies": [ "." ] }

How do I provide environment variable value?

dqbd commented 1 month ago

Hello, when storing env variables as values, LangGraph Studio stores the values locally instead. This was done to prevent accidentally committing .env file.

You can read/write the environment variables either via Studio > Project Settings or you can also switch to .env file by setting "env": ".env" in langgraph.json