docs: clarify LangGraph compatibility entrypoints (#2914)

This commit is contained in:
AochenShen99
2026-05-12 23:15:11 +08:00
committed by GitHub
parent f734e14d8b
commit 506be8bffd
3 changed files with 14 additions and 5 deletions
+4
View File
@@ -242,6 +242,10 @@ backend/
└── Dockerfile # Container build └── Dockerfile # Container build
``` ```
`langgraph.json` is not the default service entrypoint. The scripts and Docker
deployments run the Gateway embedded runtime; the file is kept for LangGraph
tooling, Studio, or direct LangGraph Server compatibility.
--- ---
## Configuration ## Configuration
+8 -4
View File
@@ -1,8 +1,12 @@
"""LangGraph Server auth handler — shares JWT logic with Gateway. """LangGraph compatibility auth handler — shares JWT logic with Gateway.
Loaded by LangGraph Server via langgraph.json ``auth.path``. The default DeerFlow runtime is embedded in the FastAPI Gateway; scripts and
Reuses the same ``decode_token`` / ``get_auth_config`` as Gateway, Docker deployments do not load this module. It is retained for LangGraph
so both modes validate tokens with the same secret and rules. tooling, Studio, or direct LangGraph Server compatibility through
``langgraph.json``'s ``auth.path``.
When that compatibility path is used, this module reuses the same JWT and CSRF
rules as Gateway so both modes validate sessions consistently.
Two layers: Two layers:
1. @auth.authenticate — validates JWT cookie, extracts user_id, 1. @auth.authenticate — validates JWT cookie, extracts user_id,
+2 -1
View File
@@ -63,7 +63,8 @@ The agent runtime is embedded in the FastAPI Gateway and built on LangGraph for
- Tool execution orchestration - Tool execution orchestration
- SSE streaming for real-time responses - SSE streaming for real-time responses
**Graph registry**: `langgraph.json` remains available for tooling and Studio compatibility. **Graph registry**: `langgraph.json` remains available for tooling, Studio, or direct LangGraph Server compatibility.
It is not the default service entrypoint; scripts and Docker deployments run the Gateway embedded runtime.
```json ```json
{ {