Interfaces
Turn
Interface: Turn
Defined in: src/core/agent/window/turns.ts:32
One turn: a user / assistant / system message plus every tool
message that answers it. Tool results belong to the assistant turn that
requested them — that pairing is the thing a removal must never break.
Properties
index
readonlyindex:number
Defined in: src/core/agent/window/turns.ts:34
Index of this turn in the segmentation.
length
readonlylength:number
Defined in: src/core/agent/window/turns.ts:38
Number of messages in the turn.
messages
readonlymessages: readonlyLLMMessage[]
Defined in: src/core/agent/window/turns.ts:39
start
readonlystart:number
Defined in: src/core/agent/window/turns.ts:36
Index of the turn's FIRST message in the window.
