Skip to Content
Application Structure

Last Updated: 3/7/2026


light logo dark logo https://mintlify.s3.us-west-1.amazonaws.com/langchain-5e9cc07a/images/brand/langchain-icon.png

Python

Get started
Capabilities
Production
LangGraph APIs

Application structure

langgraph.json .env

Key concepts

langgraph.json

File structure

my-app/ ├── my_agent # all project code lies within here │ ├── utils # utilities for your graph │ │ ├── __init__.py │ │ ├── tools.py # tools for your graph │ │ ├── nodes.py # node functions for your graph │ │ └── state.py # state definition of your graph │ ├── __init__.py │ └── agent.py # code for constructing your graph ├── .env # environment variables ├── requirements.txt # package dependencies └── langgraph.json # configuration file for LangGraph my-app/ ├── my_agent # all project code lies within here │ ├── utils # utilities for your graph │ │ ├── __init__.py │ │ ├── tools.py # tools for your graph │ │ ├── nodes.py # node functions for your graph │ │ └── state.py # state definition of your graph │ ├── __init__.py │ └── agent.py # code for constructing your graph ├── .env # environment variables ├── langgraph.json # configuration file for LangGraph └── pyproject.toml # dependencies for your project

Configuration file

langgraph.json langgraph.json

Examples

langchain_openai ./your_package/your_file.py variable .env { "dependencies": ["langchain_openai", "./your_package"], "graphs": { "my_agent": "./your_package/your_file.py:agent" }, "env": "./.env" }

Dependencies

requirements.txt pyproject.toml package.json dependencies dockerfile_lines

Graphs

graphs

Environment variables

env

Was this page helpful?

light logo dark logo

Resources

Company