NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
neograph::history::CompactedHistory Struct Reference

Result of compact_history. More...

#include <history.h>

Public Attributes

bool compacted = false
 true iff status == Compacted.
 
std::vector< sp::Message > recent
 The history to continue with; equals the input unless status == Compacted.
 
std::size_t summarized_begin = 0
 Half-open range [summarized_begin, summarized_end) of INPUT message indices that the summary replaced; both 0 unless status == Compacted.
 
std::string summary
 LLM summary of the compacted span ("" unless status == Compacted).
 
sp::runtime::Result summary_outcome
 Full immutable summarizer response; null when no summarizer call was made (UnderBudget / NothingEligible / NativeReplayProtected).
 

Detailed Description

Result of compact_history.

Definition at line 64 of file history.h.

Member Data Documentation

◆ summarized_begin

std::size_t neograph::history::CompactedHistory::summarized_begin = 0

Half-open range [summarized_begin, summarized_end) of INPUT message indices that the summary replaced; both 0 unless status == Compacted.

The summary message sits at recent[summarized_begin], so the original leading system message (if any) stays at recent[0] and the retained tail starts at recent[summarized_begin + 1]. A strict runtime maps this span onto its feed sequences to record the summary as derived context.

Definition at line 78 of file history.h.

◆ summary_outcome

sp::runtime::Result neograph::history::CompactedHistory::summary_outcome

Full immutable summarizer response; null when no summarizer call was made (UnderBudget / NothingEligible / NativeReplayProtected).

Rejected summaries retain their response, so std::get<sp::Completion>(*summary_outcome).stop.kind stays readable.

Definition at line 71 of file history.h.


The documentation for this struct was generated from the following file: