Interface: GenerationProvenanceDto
@kortexya/reasoninglayer / GenerationProvenanceDto
Interface: GenerationProvenanceDto
Section titled “Interface: GenerationProvenanceDto”Defined in: src/types/generation.ts:20
Provenance entry tracing a citation back to a source fact.
Remarks
Section titled “Remarks”One entry per cited fact per marker: a grouped marker ([F1, F2], [F1][F2]
or the range [F1-F3]) yields several entries with the same location.
Properties
Section titled “Properties”description
Section titled “description”description:
string
Defined in: src/types/generation.ts:22
Human-readable description of the source.
location
Section titled “location”location:
string
Defined in: src/types/generation.ts:29
Span of the whole citation marker in the generated text, as
"chars:<start>-<end>": half-open, in Unicode characters (code points),
not bytes and not UTF-16 code units. To slice a JavaScript string by it,
index Array.from(content), not content itself.
sourceFactId
Section titled “sourceFactId”sourceFactId:
string
Defined in: src/types/generation.ts:31
The source fact ID.