include/entropic/core/conversation_state.h

← API

include/entropic/core/conversation_state.h

entropic::ConversationState

One caller-scoped conversation and its KV bookkeeping.

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

Full message history, including the seeded system prompt.

int64_t entropic::ConversationState::last_activity_epoch_s

Epoch seconds of the last turn on this session, for LRU KV eviction.

History itself is never evicted — it is authoritative and re-prefillable.

void entropic::ConversationState::clear()

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

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

Number of messages held.

Returns
Message count.