Interface: LlmContextTrace
@kortexya/reasoninglayer / LlmContextTrace
Interface: LlmContextTrace
Section titled “Interface: LlmContextTrace”Defined in: src/types/conversation.ts:311
The structured context a turn’s prompt was assembled from.
Properties
Section titled “Properties”activePreferences
Section titled “activePreferences”activePreferences:
LlmContextPreference[]
Defined in: src/types/conversation.ts:319
User preferences active for this turn.
conversationState?
Section titled “conversationState?”
optionalconversationState?: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
Section titled “recentTurns”recentTurns:
LlmContextTurn[]
Defined in: src/types/conversation.ts:317
Recent conversation turns, most recent last.
relevantSorts
Section titled “relevantSorts”relevantSorts:
LlmContextSort[]
Defined in: src/types/conversation.ts:315
Sorts from the tenant’s catalog considered relevant.
tokenCount
Section titled “tokenCount”tokenCount:
number
Defined in: src/types/conversation.ts:313
Approximate token count the context builder charged for this context.