pub struct MemoryAssembly {
pub memory_ids: Vec<String>,
pub records: Vec<MemoryRecord>,
pub token_accounting: TokenAccounting,
pub truncated: bool,
}Expand description
The result of a token-bounded retrieval: the filtered records, ranked
and packed. This is the RunEventKind::MemoryRead event’s output
payload — the record ids and their order are first-class
(MemoryAssembly::memory_ids, the design’s journaled assembly), and
the full records travel with them so the prompt a model saw is
reconstructable from the journal alone, never from a store query re-run
later against mutated state.
Fields§
§memory_ids: Vec<String>The packed records’ content addresses, in rank order. The journaled fact replay and audit match on.
records: Vec<MemoryRecord>The packed records, in the same order.
token_accounting: TokenAccountingThe accounting the packing applied.
truncated: booltrue when the budget cut the ranked set short (truncate overflow).
Trait Implementations§
Source§impl Clone for MemoryAssembly
impl Clone for MemoryAssembly
Source§impl Debug for MemoryAssembly
impl Debug for MemoryAssembly
Source§impl<'de> Deserialize<'de> for MemoryAssembly
impl<'de> Deserialize<'de> for MemoryAssembly
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryAssembly
impl PartialEq for MemoryAssembly
Source§impl Serialize for MemoryAssembly
impl Serialize for MemoryAssembly
impl StructuralPartialEq for MemoryAssembly
Auto Trait Implementations§
impl Freeze for MemoryAssembly
impl RefUnwindSafe for MemoryAssembly
impl Send for MemoryAssembly
impl Sync for MemoryAssembly
impl Unpin for MemoryAssembly
impl UnsafeUnpin for MemoryAssembly
impl UnwindSafe for MemoryAssembly
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more