Skip to content

Interface: GenerationProvenanceDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / GenerationProvenanceDto

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

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

Human-readable description of the source.


location: string

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

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

The source fact ID.


optional unconfirmed?: boolean

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

The cited fact is words no person confirmed (a transcript, a scan, a model’s text). Set only for a draft asked with GenerateDocumentRequest.unconfirmedSupport 'label'; such a draft never passes verification.