langgraph.json
file to work with shared dependencies.
"."
.pyproject.toml
/setup.py
) and simple Python modules.package.json
should reference shared packages using workspace syntax.package.json
in the agent directory:
langgraph build
:
langgraph build
from (the monorepo root in this case) as the build context.langgraph build
from.langgraph.json
file is located.langgraph.json
file is located (only if you pass the --build-command
flag).langgraph.json
files in the specific agent directories, not at the monorepo root. This allows you to support multiple agents in the same monorepo, without having to deploy them all in the same LangGraph platform deployment.
"../../shared-package"
in the dependencies
array.
.env
) in your agent directories for environment-specific configuration.