Skip to content

MessageTurn

Defined in: agent/compaction/strategy.ts:105

Utility to group messages into logical conversation turns.

A “turn” is typically a user message followed by an assistant response. Gadget calls are grouped with the preceding assistant message.

messages: LLMMessage[]

Defined in: agent/compaction/strategy.ts:107

Messages in this turn (user + assistant + any gadget results)


tokenEstimate: number

Defined in: agent/compaction/strategy.ts:109

Estimated token count for this turn