|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
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). | |
Result of compact_history.
| 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.
| sp::runtime::Result neograph::history::CompactedHistory::summary_outcome |