Skip to main content
Version: latest

agrag.common.data_models.scope.DocumentScope

Bases: BaseModel

A parsed document scope.

Attributes:

  • all_documents (bool) – True when * is among the entries. It makes every document visible regardless of the other fields.
  • keys (frozenset[str]) – Exact document keys.
  • prefixes (frozenset[str]) – Folder prefixes. A document key matches when it starts with one of them.

all_documents​

all_documents: bool = False

keys​

keys: frozenset[str] = frozenset()

prefixes​

prefixes: frozenset[str] = frozenset()