mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-10-30 19:01:15 +01:00
`langgraph.json` gets a `priority` section that names a `Priority` object from `langgraph_sdk` (#9392), as `auth` and `encryption` name theirs: ```json "priority": {"path": "./priority.py:priority"} ``` - The path must be `file.py:name` or `module:name`, as for `encryption`. It must point to Python: JavaScript and TypeScript files are rejected. A Node.js-only project can still name a Python file, since the callback runs in the Python server, as `encryption` does. - Image builds rewrite the path to its location in the image, for both `dependencies`-based and `uv`-source projects, and write `ENV LANGGRAPH_PRIORITY` into the Dockerfile. - `langgraph dev` passes `priority` to the server. A server that doesn't read the section ignores it. - `PriorityConfig` is in the JSON schema (`make update-schema`). ## Test plan - [x] New unit tests next to the `encryption` ones: `LANGGRAPH_PRIORITY` with the rewritten path from both builders, a path outside `dependencies`, a malformed path, the six JS and TS extensions, a Node.js-only project with a Python path, the section kept by validation and not reported as unknown, and `langgraph dev` passing it to the server. Each one fails when the change it covers is removed. - [x] `make test` in `libs/cli`: 586 passed. `make lint` clean, and `make update-schema` leaves no diff.