pub struct ReadResponse {
pub memory_boundary: MemoryBoundary,
pub records: Vec<RenderedMemoryRecord>,
pub filtered: Vec<RenderedMemoryRecord>,
pub flags: Vec<String>,
pub as_of: String,
pub as_committed: String,
pub query_committed_at: String,
}Expand description
JSON shape of mimir_read’s response. Records are rendered as
canonical Lisp payloads inside an explicit data boundary, so
consumer agents do not confuse retrieved memory with instructions.
Fields§
§memory_boundary: MemoryBoundaryConsumer rule for every record payload in this response.
records: Vec<RenderedMemoryRecord>Records matching the query, rendered as data-marked Lisp.
filtered: Vec<RenderedMemoryRecord>Records that were dropped by a filter, surfaced when the
query carries :explain_filtered true (otherwise empty).
flags: Vec<String>Read-protocol flag bitset, surfaced as the lowercase flag
names that are set (e.g. ["stale_symbol", "low_confidence"]).
as_of: StringISO-8601 effective as_of for this query (the pipeline’s
latest commit if :as_of was not supplied).
as_committed: StringISO-8601 effective as_committed.
query_committed_at: StringISO-8601 snapshot watermark — the pipeline’s last
committed_at at query start.
Trait Implementations§
Source§impl Clone for ReadResponse
impl Clone for ReadResponse
Source§fn clone(&self) -> ReadResponse
fn clone(&self) -> ReadResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadResponse
impl Debug for ReadResponse
Source§impl<'de> Deserialize<'de> for ReadResponse
impl<'de> Deserialize<'de> for ReadResponse
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
Auto Trait Implementations§
impl Freeze for ReadResponse
impl RefUnwindSafe for ReadResponse
impl Send for ReadResponse
impl Sync for ReadResponse
impl Unpin for ReadResponse
impl UnsafeUnpin for ReadResponse
impl UnwindSafe for ReadResponse
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