|
Entropic 2.14.3
Local-first agentic inference engine
|
One caller-scoped conversation and its KV bookkeeping. More...
#include <entropic/core/conversation_state.h>
Public Member Functions | |
| void | clear () |
| Drop the history (a new session under the same key). | |
| std::size_t | count () const |
| Number of messages held. | |
Public Attributes | |
| std::vector< Message > | messages |
| Full message history, including the seeded system prompt. | |
| int64_t | last_activity_epoch_s = 0 |
| Epoch seconds of the last turn on this session, for LRU KV eviction. | |
One caller-scoped conversation and its KV bookkeeping.
The engine holds a map of these keyed by an opaque, caller-supplied session_key. "" is the default session and behaves exactly as the single shared conversation did before v2.12.0.
@dg_internal
Definition at line 41 of file conversation_state.h.
|
inline |
Drop the history (a new session under the same key).
@dg_internal
Definition at line 55 of file conversation_state.h.
|
inline |
Number of messages held.
Definition at line 63 of file conversation_state.h.
| int64_t entropic::ConversationState::last_activity_epoch_s = 0 |
Epoch seconds of the last turn on this session, for LRU KV eviction.
History itself is never evicted — it is authoritative and re-prefillable.
Definition at line 48 of file conversation_state.h.
| std::vector<Message> entropic::ConversationState::messages |
Full message history, including the seeded system prompt.
Definition at line 43 of file conversation_state.h.