Skip to content

Interface: CoherenceAnalyzeResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Coherence / CoherenceAnalyzeResponse

Interface: CoherenceAnalyzeResponse

Defined in: src/types/coherence.ts:157

The result of a coherence analysis.

Remarks

report is the full CoherenceReport — links with evidence, derivations with proofs, flux profile, chains, bundles, verdict, diagnostics — serialized verbatim from the domain analyzer. It is typed as object because the backend publishes it as an open payload; CoherenceSummaryDto is the typed projection of its headline numbers.

Example

console.log(response.summary.verdict); // 'coherent_certified'
for (const claim of response.claims) {
console.log(claim.index, claim.sort, claim.text);
}

Properties

claims

claims: CoherenceClaimDto[]

Defined in: src/types/coherence.ts:159

The analyzed claims, in reading order.


documentId?

optional documentId: string | null

Defined in: src/types/coherence.ts:165

Document the claims came from (absent for termIds requests).


report

report: object

Defined in: src/types/coherence.ts:163

Full CoherenceReport, serialized verbatim from the domain analyzer.


summary

summary: CoherenceSummaryDto

Defined in: src/types/coherence.ts:161

Headline numbers of the analysis.


warnings?

optional warnings: string[]

Defined in: src/types/coherence.ts:167

Non-fatal diagnostics raised during the analysis.