可携带代理记忆:一种用于跨异构AI代理加密验证记忆传输的协议
Portable Agent Memory: A Protocol for Cryptographically-Verified Memory Transfer Across Heterogeneous AI Agents
AI总结:
本文提出Portable Agent Memory协议,通过结构化内存模型、基于能力的访问控制、抗注入重水化协议和JSON优先的序列化格式,实现跨异构AI代理的安全记忆传输。
摘要:
我们提出了Portable Agent Memory,一种开放协议和参考实现,用于在异构AI代理之间传输持久内存状态。现代AI代理积累丰富的上下文——事件、语义知识、程序技能、工作状态和身份偏好——但这些上下文仍被供应商特定的运行时锁定。Portable Agent Memory通过:(1)一个五组件的结构化内存模型,具有通过Merkle-DAG证明图链接的内容可寻址条目,提供篡改证据;(2)基于能力的访问控制,允许选择性、范围内的内存段披露;(3)抗注入重水化协议,将召回内容适应异构目标模型,同时减轻间接提示注入;(4)一种优先使用JSON的序列化格式,可选CBOR压缩以实现高效传输。我们提供了一个Python SDK,包含54个通过测试,适用于多个平台的代理技能,并展示了在GPT-4、Claude、Gemini和Llama架构之间的跨模型记忆传输。该协议在Apache 2.0下开源。
英文摘要:
We present Portable Agent Memory, an open protocol and reference implementation for transferring persistent memory state across heterogeneous AI agents. Modern AI agents accumulate rich context -- episodic events,semantic knowledge, procedural skills, working state, and identity preferences -- but this context remains locked within vendor-specific runtimes. Portable Agent Memory addresses this through: (1) a five-component structured memory model with content-addressable entries linked by a Merkle-DAG provenance graph providing tamper-evidence; (2) capability-based access control enabling selective, scoped disclosure of memory segments; (3) an injection-resistant rehydration protocol that adapts recalled content to heterogeneous target models while mitigating indirect prompt injection; and (4) a JSON-first serialization format with optional CBOR compaction for efficient transport. We provide a Python SDK with 54 passing tests, agent skills for multiple platforms, and demonstrate cross-model memory transfer between GPT-4, Claude, Gemini, and Llama architectures. The protocol is open-source under Apache 2.0.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。