Skip to content

Interface: ClaimCitation

@kortexya/reasoninglayer


@kortexya/reasoninglayer / ClaimCitation

Defined in: src/types/guardrail.ts:44

One supporting source recovered from a certified claim’s proof.

features holds the caller-requested citation features (see GuardrailRequest.citationFeatures) resolved from the supporting leaf fact. via is the derivation path: the ids of derived facts sitting between the matched fact and this leaf (empty when the match is itself a base fact).

const citation: ClaimCitation = {
sort: 'clinical_note',
termId: '9f1c...-...',
sourceUri: 's3://corpus/notes/42.pdf',
features: { document_id: '42', page: 3 },
via: [],
};

optional features?: JsonValue

Defined in: src/types/guardrail.ts:49

Caller-requested citation features resolved from the fact, as an opaque feature map keyed by the names given in GuardrailRequest.citationFeatures.


sort: string

Defined in: src/types/guardrail.ts:51

Sort name of the supporting fact.


optional sourceUri?: string | null

Defined in: src/types/guardrail.ts:53

The fact’s source_uri feature, when present.


termId: string

Defined in: src/types/guardrail.ts:55

Id of the supporting Psi-term (a leaf fact after provenance resolution).


optional via?: string[]

Defined in: src/types/guardrail.ts:60

Derivation path: derived-fact ids between the matched fact and this leaf (empty when the match is itself a base fact).