查看“︁TencentDB Agent Memory”︁的源代码
←
TencentDB Agent Memory
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== TencentDB Agent Memory Core Specification & Architecture Framework == TencentDB Agent Memory is a hierarchical long-term memory engine open-sourced by the Tencent Cloud Database Team. It is explicitly architected for AI Agents handling long-running sessions, multi-turn tool calling, and cross-session knowledge persistence. Under standard benchmarks, it reduces token usage by over 50% compared to brute-force vector memory retrieval. === 1. The 4-Tier Memory Architecture === The engine structures context into a rigorous four-layer data hierarchy to guarantee structured, predictable retrieval without context window flooding. * '''L0: Conversation Tier (Dynamic Memory)''': Captures raw, unfiltered conversation turns in real-time. It provides lossless token tracking within the active window and isolates state variables for rapid state updates. * '''L1: Atom Tier (Structured Memory)''': Automatically distills loose dialogue turns into independent atomic facts, key value entities, promises, and relational statements via background extraction pipelines. * '''L2: Scenario Tier (Contextual Memory)''': Groups atomic facts into dynamic execution topologies based on specific tasks or user flows. Scenarios are serialized into version-controlled markdown artifacts for easy state persistence. * '''L3: Persona Tier (Global Profile)''': Synthesizes a persistent profile of the user across hundreds of independent historical sessions. It automatically updates long-term behavioural preferences and cross-project knowledge assets. === 2. Core Gatekeeping Mechanics === To prevent agents from polluting the persistent data layer with hallucinations or out-of-date runtime execution variables, the system executes three critical operational boundaries. * '''Context Offloading Engine''': Monitors the current token density of the live context window. When the window nears 80% saturation, it automatically summarizes active histories, offloads historical segments to L1/L2 tiers, and references them via explicit memory pointers. * '''Hook Gating & Command Whitelisting''': Operates at the runtime interface to block unauthorized write commands to the root database schema. Agents can read globally shared profiles but cannot write back to system files or alter shared memories without manual Multi-Factor Authentication. * '''Mermaid Canvas Execution Tracer''': Automatically logs tool invocation paths and error stack parameters into standard Mermaid dependency trees. This converts complex execution graphs into human-readable visual layouts for rapid debugging and security reviews. === 3. Installation, Deployment & Gateway Orchestration === ==== 3.1 OpenClaw Integration via Plugin ==== To enable memory services within your OpenClaw or OpenClaw-based deployment workflows, install the official provider extension: <pre> openclaw plugins install @tencentdb-agent-memory/memory-tencentdb </pre> Update your core configuration file located at <code>~/.openclaw/openclaw.json</code>. Append the provider metadata directly inside the plugins block and switch the active state property to true: <pre> "memory-tencentdb": { "enabled": true, "storage": "sqlite-vec" } </pre> By default, the engine utilizes embedded SQLite with native vector extensions for localized caching. For distributed or collaborative environments, explicit slot properties must be configured. ==== 3.2 Hermes Gateway Deployment ==== For independent, production-grade enterprise access, deploy the standalone gateway image via Docker to isolate network calls from the main core: <pre> docker run -d --name hermes-gateway -p 8420:8420 tencentcloud/hermes-gateway:latest </pre> The Hermes Gateway exposes localized API routing endpoints on port 8420. Ensure your enterprise firewall configurations whitelist traffic to this port for authorized internal services. [[Boardline]] [[Category:Technical Architecture]] [[Category:AI Infrastructure]]
返回
TencentDB Agent Memory
。
导航菜单
个人工具
中文
登录
命名空间
页面
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
工具
链入页面
相关更改
页面信息