Skip to content

Interface: LlmContextTrace

@kortexya/reasoninglayer


@kortexya/reasoninglayer / LlmContextTrace

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

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

activePreferences: LlmContextPreference[]

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

User preferences active for this turn.


recentTurns: LlmContextTurn[]

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

Recent conversation turns, most recent last.


relevantSorts: LlmContextSort[]

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

Sorts from the tenant’s catalog considered relevant.


tokenCount: number

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

Approximate token count the context builder charged for this context.