Metadata injected by LangGraph Server. None when running open-source LangGraph without LangSmith deployments.
The assistant ID for the current execution.
The graph ID for the current execution.
The authenticated user, if any.
This implements the BaseUser protocol from langgraph_sdk.auth.types,
which supports both attribute access (e.g. user.identity) and dict-like
access (e.g. user["identity"]).