mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
19 lines
508 B
Python
19 lines
508 B
Python
"""Link-scope enumeration: which edges to return from get_inlinks / get_outlinks."""
|
|
|
|
from enum import Enum
|
|
|
|
|
|
class LinkScopeEnum(str, Enum):
|
|
"""Which subset of edges a link query should return.
|
|
|
|
A file-graph edge is **real** when both endpoints are indexed nodes,
|
|
and **virtual** (dangling / pending) when one endpoint is a placeholder
|
|
— a path referenced by a wikilink but never upserted, or upserted
|
|
then deleted.
|
|
"""
|
|
|
|
REAL = "real"
|
|
|
|
VIRTUAL = "virtual"
|
|
|
|
ALL = "all"
|