Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
conversation_state.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
21#pragma once
22
24
25#include <cstdint>
26#include <string>
27#include <vector>
28
29namespace entropic {
30
43 std::vector<Message> messages;
44
49
55 void clear() { messages.clear(); }
56
63 std::size_t count() const { return messages.size(); }
64};
65
66} // namespace entropic
Message struct for conversation history.
Activate model on GPU (WARM → ACTIVE).
@ optional
optional: every escape asks the host's path approver
One caller-scoped conversation and its KV bookkeeping.
std::vector< Message > messages
Full message history, including the seeded system prompt.
std::size_t count() const
Number of messages held.
int64_t last_activity_epoch_s
Epoch seconds of the last turn on this session, for LRU KV eviction.
void clear()
Drop the history (a new session under the same key).