Skip to content

Interface: TurnDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TurnDto

Defined in: src/types/conversation.ts:880

A single conversation turn (message).

optional claimAnnotations?: ClaimAnnotationDto[] | null

Defined in: src/types/conversation.ts:900

Per-claim provenance annotations (assistant turns only).


content: string

Defined in: src/types/conversation.ts:888

Message content.


optional feedback?: TurnFeedback

Defined in: src/types/conversation.ts:916

The user’s rating of this answer, when one was submitted with submitAnswerFeedback (assistant turns only).


id: string

Defined in: src/types/conversation.ts:882

Turn ID.


optional intent?: string | null

Defined in: src/types/conversation.ts:894

Classified intent (assistant turns only).


optional osfql?: string | null

Defined in: src/types/conversation.ts:897

OSFQL generated (assistant turns only).


optional payload?: unknown

Defined in: src/types/conversation.ts:910

Opaque structured card state recorded with the turn by an external surface (see RecordTurnRequest.payload). Returned verbatim.


optional proofTrace?: ProofTraceNodeDto | null

Defined in: src/types/conversation.ts:922

Proof tree of the answer (assistant turns only): the same value the live answer carried in ConversationMessageResponse.proofTrace.


optional queryResults?: Record<string, OsfqlValue>[] | null

Defined in: src/types/conversation.ts:904

MATCH result rows (assistant turns only), persisted by the backend so a “show me a table of X” answer keeps its table across a reload.


optional reasoningTrace?: ReasoningTraceDto | null

Defined in: src/types/conversation.ts:928

Reasoning trace of the answer (assistant turns only): the same value the live answer carried in ConversationMessageResponse.reasoningTrace.


role: string

Defined in: src/types/conversation.ts:885

“user” or “assistant”.


timestamp: string

Defined in: src/types/conversation.ts:891

ISO 8601 timestamp.


optional validityCertificateHash?: string | null

Defined in: src/types/conversation.ts:940

SHA-256 hash of the validity certificate (assistant turns only): the same value the live answer carried.


optional validityCertificateId?: string | null

Defined in: src/types/conversation.ts:934

ID of the validity certificate (assistant turns only): the same value the live answer carried.


optional validityCertificateRuleProgramHash?: string | null

Defined in: src/types/conversation.ts:946

Hex SHA-256 of the rule program active when the certificate was issued (assistant turns only): the same value the live answer carried.


optional validityCertificateRuleRevision?: number | null

Defined in: src/types/conversation.ts:952

Rule-program revision ordinal at issuance (assistant turns only): the same value the live answer carried.