Skip to content

Interface: CorpusScope

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Corpus / CorpusScope

Interface: CorpusScope

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

Scope selector shared by every corpus endpoint.

Remarks

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.

Extended by

Properties

collection?

optional collection: string | null

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

Collection path (exact match) to scope to.


documentIds?

optional documentIds: string[] | null

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

Explicit document ids (overrides collection when present).


maxDocuments?

optional maxDocuments: number | null

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

Max documents in scope.

Default Value

200 (hard cap 1000)