Interfaces

Turn

Interface: Turn

Defined in: src/core/agent/window/turns.ts:33

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

readonly index: number

Defined in: src/core/agent/window/turns.ts:35

Index of this turn in the segmentation.


length

readonly length: number

Defined in: src/core/agent/window/turns.ts:39

Number of messages in the turn.


messages

readonly messages: readonly LLMMessage[]

Defined in: src/core/agent/window/turns.ts:40


start

readonly start: number

Defined in: src/core/agent/window/turns.ts:37

Index of the turn's FIRST message in the window.

On this page