|
Entropic 2.3.8
Local-first agentic inference engine
|
SqliteStorageBackend implementation. More...
#include <entropic/storage/backend.h>#include <entropic/types/logging.h>#include <nlohmann/json.hpp>#include <sqlite3.h>#include <chrono>#include <cstring>#include <random>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Typedefs | |
| using | json = nlohmann::json |
Functions | |
| static std::string | entropic::col_text (sqlite3_stmt *stmt, int col) |
| Get text from a sqlite3 column, returning empty string for NULL. | |
| static std::optional< std::string > | entropic::col_opt_text (sqlite3_stmt *stmt, int col) |
| Get optional text from a sqlite3 column. | |
| static void | entropic::bind_opt_text (sqlite3_stmt *stmt, int idx, const std::optional< std::string > &val) |
| Bind optional text to a parameter position. | |
| static void | entropic::bind_opt_int (sqlite3_stmt *stmt, int idx, const std::optional< int > &val) |
| Bind optional int to a parameter position (NULL if unset). | |
| static void | entropic::bind_delegation_insert (sqlite3_stmt *s, const DelegationRecord &rec) |
| Bind a Delegation record onto the delegations-INSERT statement's 11 placeholders. | |
| static bool | entropic::guard_parent_conversation (const std::string &parent_conversation_id, const std::string &delegating_tier, const std::string &target_tier, std::string &delegation_id, std::string &child_conversation_id) |
| Reject an empty parent_conversation_id with a clear error and reset the out params (gh#48 defense-in-depth). | |
| std::string | entropic::generate_uuid () |
| Generate a UUID v4 string. | |
| std::string | entropic::utc_timestamp () |
| Get current UTC time as ISO 8601 string. | |
| ConversationRecord | entropic::make_conversation (const std::string &title="New Conversation", const std::optional< std::string > &project_path=std::nullopt, const std::optional< std::string > &model_id=std::nullopt) |
| Create a new ConversationRecord with generated UUID and timestamps. | |
| DelegationRecord | entropic::make_delegation (const std::string &parent_conversation_id, const std::string &child_conversation_id, const std::string &delegating_tier, const std::string &target_tier, const std::string &task) |
| Create a new DelegationRecord with generated UUID and timestamp. | |
| using json = nlohmann::json |
Definition at line 18 of file backend.cpp.
| std::string content |
Definition at line 161 of file backend.cpp.
| std::string id |
Definition at line 159 of file backend.cpp.
| bool is_compacted |
Definition at line 165 of file backend.cpp.
| std::string role |
Definition at line 160 of file backend.cpp.
| std::optional<std::string> tier |
Definition at line 166 of file backend.cpp.
| long long token_count |
Definition at line 164 of file backend.cpp.
| std::string tool_calls |
Definition at line 162 of file backend.cpp.
| std::string tool_results |
Definition at line 163 of file backend.cpp.