pub struct MemorySearchResult {
pub chunk_id: String,
pub path: String,
pub start_line: usize,
pub end_line: usize,
pub score: f64,
pub snippet: String,
pub source: String,
pub created_at: Option<i64>,
}Expand description
One result returned from a memory search.
Mirrors the shape used by the grok-build memory subsystem so that higher-level consumers (tool bridge, context injection) can share formatting logic once a richer backend is available.
Fields§
§chunk_id: StringStable identifier for this chunk (session_id + fact index).
path: StringSource memory file path.
start_line: usize0-based start line in the source file (0 for derived facts).
end_line: usize0-based end line in the source file (0 for derived facts).
score: f64Relevance score (higher = more relevant).
snippet: StringText snippet from the chunk.
source: StringSource scope: "session" for per-session memory files.
created_at: Option<i64>Unix timestamp (seconds) when the source memory was created.
Trait Implementations§
Source§impl Clone for MemorySearchResult
impl Clone for MemorySearchResult
Source§fn clone(&self) -> MemorySearchResult
fn clone(&self) -> MemorySearchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemorySearchResult
impl Debug for MemorySearchResult
Source§impl<'de> Deserialize<'de> for MemorySearchResult
impl<'de> Deserialize<'de> for MemorySearchResult
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 MemorySearchResult
impl PartialEq for MemorySearchResult
Source§impl Serialize for MemorySearchResult
impl Serialize for MemorySearchResult
impl StructuralPartialEq for MemorySearchResult
Auto Trait Implementations§
impl Freeze for MemorySearchResult
impl RefUnwindSafe for MemorySearchResult
impl Send for MemorySearchResult
impl Sync for MemorySearchResult
impl Unpin for MemorySearchResult
impl UnsafeUnpin for MemorySearchResult
impl UnwindSafe for MemorySearchResult
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