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

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.
 

Detailed Description

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

Version
2.12.0

Definition at line 41 of file conversation_state.h.

Member Function Documentation

◆ clear()

void entropic::ConversationState::clear ( )
inline

Drop the history (a new session under the same key).

@dg_internal

Version
2.12.0

Definition at line 55 of file conversation_state.h.

◆ count()

std::size_t entropic::ConversationState::count ( ) const
inline

Number of messages held.

Returns
Message count. @dg_internal
Version
2.12.0

Definition at line 63 of file conversation_state.h.

Member Data Documentation

◆ last_activity_epoch_s

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.

◆ messages

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

Full message history, including the seeded system prompt.

Definition at line 43 of file conversation_state.h.


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