|
Entropic 2.14.3
Local-first agentic inference engine
|
Remembers which message bodies a session's log has already shown. More...
#include </home/runner/work/entropic/entropic/src/core/prompt_log_util.h>
Public Member Functions | |
| bool | note (size_t content_hash) |
| Record a message body and say whether to log it in full. | |
| void | reset () |
| Forget everything, so the next turn logs in full again. | |
| size_t | shown () const |
| How many distinct bodies have been shown. | |
Remembers which message bodies a session's log has already shown.
Keyed by content hash, not by index: a message's index shifts as the conversation is compacted, but its content is what a reader would be double-counting.
Definition at line 46 of file prompt_log_util.h.
Record a message body and say whether to log it in full.
First sighting logs in full; every later sighting is a reference.
| content_hash | Hash of the message body. |
Definition at line 58 of file prompt_log_util.h.
|
inline |
Forget everything, so the next turn logs in full again.
Used when the conversation itself is replaced (a cleared context, a different session), where re-showing the bodies is correct.
@utility
Definition at line 71 of file prompt_log_util.h.
|
inline |
How many distinct bodies have been shown.
Definition at line 79 of file prompt_log_util.h.