Skip to content

Interface: CorpusScope

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CorpusScope

Defined in: src/types/corpus.ts:21

Scope selector shared by every corpus endpoint.

documentIds overrides collection when present. When neither is given the tenant’s most recent documents are used. The scope needs at least 2 documents — a smaller scope is rejected with a 400. It is capped server-side (default 200, hard cap 1000); truncation is reported as scopeTruncated on every response.

optional collection?: string | null

Defined in: src/types/corpus.ts:25

Collection path (exact match) to scope to.


optional documentIds?: string[] | null

Defined in: src/types/corpus.ts:23

Explicit document ids (overrides collection when present).


optional maxDocuments?: number | null

Defined in: src/types/corpus.ts:30

Max documents in scope.

200 (hard cap 1000)