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.
Properties
Section titled “Properties”messages
Section titled “messages”messages:
LLMMessage[]
Defined in: agent/compaction/strategy.ts:107
Messages in this turn (user + assistant + any gadget results)
tokenEstimate
Section titled “tokenEstimate”tokenEstimate:
number
Defined in: agent/compaction/strategy.ts:109
Estimated token count for this turn