Skip to main content

session_tail

Function session_tail 

Source
pub fn session_tail(entries: &[Value]) -> Option<Tail>
Expand description

What the branch entries hold after their last compaction: the user’s messages and the agent’s final replies (an assistant message that ended its run, not one that called a tool), oldest first; never tool output, custom messages (recalled memory among them) or thinking. None with fewer than TAIL_MIN_MESSAGES user messages.