Version: latest
agrag.common.data_models.scope.parse_document_scope
parse_document_scope(entries:Iterable[str]) -> DocumentScope
Parse scope entries into a document scope.
Entries are trimmed. Blank entries are ignored. * selects all documents,
an entry ending in / is a folder prefix, and any other entry is an exact
document key. A scope with no entry selects no document.
Parameters:
- entries (
Iterable[str]) – Scope entries as configured by the caller.
Returns:
DocumentScope– The parsed scope.