Interface: CorpusScope
@kortexya/reasoninglayer / CorpusScope
Interface: CorpusScope
Section titled “Interface: CorpusScope”Defined in: src/types/corpus.ts:21
Scope selector shared by every corpus endpoint.
Remarks
Section titled “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
Section titled “Extended by”Properties
Section titled “Properties”collection?
Section titled “collection?”
optionalcollection?:string|null
Defined in: src/types/corpus.ts:25
Collection path (exact match) to scope to.
documentIds?
Section titled “documentIds?”
optionaldocumentIds?:string[] |null
Defined in: src/types/corpus.ts:23
Explicit document ids (overrides collection when present).
maxDocuments?
Section titled “maxDocuments?”
optionalmaxDocuments?:number|null
Defined in: src/types/corpus.ts:30
Max documents in scope.
Default Value
Section titled “Default Value”200 (hard cap 1000)