Skip to content

Interface: GenerationProvenanceDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / GenerationProvenanceDto

Defined in: src/types/generation.ts:20

Provenance entry tracing a citation back to a source fact.

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.

description: string

Defined in: src/types/generation.ts:22

Human-readable description of the source.


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: string

Defined in: src/types/generation.ts:31

The source fact ID.