Skip to content

Interface: TurnDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / TurnDto

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

A single conversation turn (message).

optional abstention?: ConversationAbstention

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

Why the turn abstained, set exactly when answerState is abstained.


optional answerState?: ConversationAnswerState

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

verified or abstained on a turn that answers a question (proposal for a proposed write); absent on a turn that answers none. A verified answer states only the claims; an abstained one states no fact.


optional claimAnnotations?: ClaimAnnotationDto[] | null

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

Per-claim provenance annotations (assistant turns only).


claims: VerifiedClaim[]

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

The factual sentences of the answer, in order, each confirmed by a bound row or derived by a rule. Nothing else of the answer states a fact.


content: string

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

Message content.


optional feedback?: TurnFeedback

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

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


optional followUpOf?: string | null

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

Earlier turn whose web reading this one completes.


framePages: FrameAuthoringPageRevision[]

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

Readable Frame page revisions committed while executing this Work turn.


id: string

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

Turn ID.


optional intent?: string | null

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

Classified intent (assistant turns only).


nextQuestions: ConversationNextQuestion[]

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

Follow-ups, recomputed from the evidence stored with this turn.


optional osfql?: string | null

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

OSFQL generated (assistant turns only).


optional payload?: unknown

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

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


optional presentation?: unknown

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

The result view the live answer carried; absent when the rows are not shown as its result.


optional proofTrace?: ProofTraceNodeDto | null

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

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

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

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

“user” or “assistant”.


strippedClaims: StrippedClaim[]

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

The sentences the engine removed from the drafted answer, with why.


timestamp: string

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

ISO 8601 timestamp.


optional toVerify?: ToVerifyPoint[]

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

Points the engine marked for verification, in display order.


optional unconfirmed?: UnconfirmedRecord[]

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

What the query returned that no person confirmed, shown as unconfirmed and never used as support.


optional unreadPages?: UnreadPages[]

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

The documents the answer drew on that were not read whole, with the pages not read and why. What those pages say is absent from the answer, and the turn says so.


optional validityCertificateHash?: string | null

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

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

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

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

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


optional webSources?: WebSource[]

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

Pages read during this turn’s web search.