requirements.txt
to specify project dependencies.
This walkthrough is based on this repository, which you can play around with to learn more about how to setup your LangGraph application for deployment.
pyproject.toml
for LangGraph Platform.pyproject.toml
, setup.py
, or requirements.txt
. If none of these files is created, then dependencies can be specified later in the LangGraph configuration file.
The dependencies below will be included in the image, you can also use them in your code, as long as with a compatible version range:
requirements.txt
file:
.env
). See the Environment Variables reference to configure additional variables for a deployment.
Example .env
file:
agent.py
file, which shows how to import from other modules you define (code for the modules is not shown here, please see this repository to see their implementation):
langgraph.json
. See the LangGraph configuration file reference for detailed explanations of each key in the JSON object of the configuration file.
Example langgraph.json
file:
CompiledGraph
appears at the end of the value of each subkey in the top-level graphs
key (i.e. :<variable_name>
).