Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::CompactionResult Struct Reference

Result of a compaction operation. More...

#include <entropic/core/compaction.h>

Public Attributes

bool compacted = false
 Whether compaction occurred.
 
int old_token_count = 0
 Token count before compaction.
 
int new_token_count = 0
 Token count after compaction.
 
std::string summary
 Generated summary text.
 
int preserved_messages = 0
 Messages kept after compaction.
 
int messages_summarized = 0
 Messages stripped into summary.
 
std::vector< Messagemessages
 The compacted message list (v1.9.9)
 
std::string identity
 Identity that triggered compaction.
 
std::string compactor_source
 "default", "global_custom", or identity name
 
bool custom_compactor_used = false
 true if a consumer-provided compactor ran
 

Detailed Description

Result of a compaction operation.

Version
1.9.9 — extended from v1.8.4

Definition at line 89 of file compaction.h.

Member Data Documentation

◆ compacted

bool entropic::CompactionResult::compacted = false

Whether compaction occurred.

Definition at line 90 of file compaction.h.

◆ compactor_source

std::string entropic::CompactionResult::compactor_source

"default", "global_custom", or identity name

Definition at line 100 of file compaction.h.

◆ custom_compactor_used

bool entropic::CompactionResult::custom_compactor_used = false

true if a consumer-provided compactor ran

Definition at line 101 of file compaction.h.

◆ identity

std::string entropic::CompactionResult::identity

Identity that triggered compaction.

Definition at line 99 of file compaction.h.

◆ messages

std::vector<Message> entropic::CompactionResult::messages

The compacted message list (v1.9.9)

Definition at line 96 of file compaction.h.

◆ messages_summarized

int entropic::CompactionResult::messages_summarized = 0

Messages stripped into summary.

Definition at line 95 of file compaction.h.

◆ new_token_count

int entropic::CompactionResult::new_token_count = 0

Token count after compaction.

Definition at line 92 of file compaction.h.

◆ old_token_count

int entropic::CompactionResult::old_token_count = 0

Token count before compaction.

Definition at line 91 of file compaction.h.

◆ preserved_messages

int entropic::CompactionResult::preserved_messages = 0

Messages kept after compaction.

Definition at line 94 of file compaction.h.

◆ summary

std::string entropic::CompactionResult::summary

Generated summary text.

Definition at line 93 of file compaction.h.


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