Interface: CheckDocumentRequest
@kortexya/reasoninglayer / CheckDocumentRequest
Interface: CheckDocumentRequest
Section titled “Interface: CheckDocumentRequest”Defined in: src/types/document-check.ts:98
Request to check a contract document.
Remarks
Section titled “Remarks”Exactly one of CheckDocumentRequest.documentId or
CheckDocumentRequest.document must be supplied. When both are present
the already-ingested documentId wins.
Properties
Section titled “Properties”document?
Section titled “document?”
optionaldocument?:InlineDocument|null
Defined in: src/types/document-check.ts:102
…or inline content (markdown/plain text) to ingest and then check.
documentId?
Section titled “documentId?”
optionaldocumentId?:string|null
Defined in: src/types/document-check.ts:100
Already-ingested contract document id…
includeFixSuggestions?
Section titled “includeFixSuggestions?”
optionalincludeFixSuggestions?:boolean
Defined in: src/types/document-check.ts:121
Include fix suggestions on findings.
Default Value
Section titled “Default Value”trueincludeProofTraces?
Section titled “includeProofTraces?”
optionalincludeProofTraces?:boolean
Defined in: src/types/document-check.ts:116
Include per-rule proof traces on rule-violation findings.
Default Value
Section titled “Default Value”truereferenceDocumentIds?
Section titled “referenceDocumentIds?”
optionalreferenceDocumentIds?:string[]
Defined in: src/types/document-check.ts:104
Reference documents (templates/policies) to diff the contract against.
ruleSortFilter?
Section titled “ruleSortFilter?”
optionalruleSortFilter?:string[]
Defined in: src/types/document-check.ts:106
Rule-sort filter for the knowledge-base rules pass (empty = all rule sorts).
runKbRules?
Section titled “runKbRules?”
optionalrunKbRules?:boolean
Defined in: src/types/document-check.ts:111
Run the knowledge-base rules pass (needs inline document content).
Default Value
Section titled “Default Value”truethreshold?
Section titled “threshold?”
optionalthreshold?:number|null
Defined in: src/types/document-check.ts:126
Entity/clause match threshold for the diff, clamped server-side to 0.1-1.0.
Default Value
Section titled “Default Value”0.7