Skip to content

Interface: LlmContextTrace

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LlmContextTrace

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

The structured context a turn’s prompt was assembled from.

activePreferences: LlmContextPreference[]

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

User preferences active for this turn.


optional conversationState?: string | null

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

The conversation’s working state as the prompt carried it, when earlier turns were folded into one; otherwise absent or null.


recentTurns: LlmContextTurn[]

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

Recent conversation turns, most recent last.


relevantSorts: LlmContextSort[]

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

Sorts from the tenant’s catalog considered relevant.


tokenCount: number

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

Approximate token count the context builder charged for this context.