Skip to main content

Module wire

Module wire 

Source
Expand description

AMP / memorywire wire format.

AMP (“Agent Memory Protocol” / memorywire) models an agent’s memory surface as 5 operationsremember / recall / forget / merge / expire — over 4 memory typesepisodic / semantic / procedural / working. The wire shape is a single self-describing JSON envelope validated against a JSON-Schema 2020-12 document (see schema).

This module is transport-agnostic: it only defines the request (AmpEnvelope) and response (AmpResult) shapes plus the schema. The mapping onto a real MnemoEngine lives in crate::store.

Structs§

AmpEnvelope
A single AMP request envelope.
AmpHit
One recalled item in an AmpResult.
AmpResult
The response envelope returned by every AMP op.

Enums§

AmpMemoryType
The four AMP memory types. Map 1:1 onto mnemo_core::model::memory::MemoryType.
AmpOp
The five AMP operations. 1:1 with the cross-adapter conformance suite’s op axis.

Functions§

schema
The AMP envelope JSON-Schema 2020-12 document.