Skip to main content

Module turn

Module turn 

Source
Expand description

Turn tracking for conversation context management.

A “turn” is one user request and everything that follows until the next user message (assistant text, tool calls, tool results). Tracking turns allows the windowing algorithm to operate at semantic boundaries instead of raw message indices.

Structs§

Turn
A single conversation turn: one user request + all resulting messages.
TurnTracker
Tracks turn boundaries over a Vec<Message>.

Enums§

TurnStatus
Status of a conversation turn.