Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
// Copyright (c) 2026 Beijing Volcano Engine Technology Co., Ltd.
// SPDX-License-Identifier: AGPL-3.0
#pragma once
#include <string>
#include <vector>
#include "leveldb/db.h"
#include "store/common_structs.h"
#include "store/kv_store.h"
namespace vectordb {
class PersistStore : public KVStore {
public:
PersistStore(const std::string& path);
~PersistStore() override;
int exec_op(const std::vector<StorageOp>& ops) override;
std::vector<std::string> get_data(
const std::vector<std::string>& keys) override;
int put_data(const std::vector<std::string>& keys,
const std::vector<std::string>& values) override;
int delete_data(const std::vector<std::string>& keys) override;
int clear_data() override;
std::vector<std::pair<std::string, std::string>> seek_range(
const std::string& start_key, const std::string& end_key) override;
std::vector<std::pair<std::string, std::string>> seek_range_page(
const std::string& start_key, const std::string& end_key, size_t limit,
size_t max_bytes, bool start_exclusive) override;
private:
leveldb::DB* db_ = nullptr;
};
} // namespace vectordb