ReferenceSdkRustTypes
ChunkReference
Rust struct goodmem::models::ChunkReference: declaration, fields or variants, and implementations.
Struct ChunkReference
goodmem::models::ChunkReference
Reference to a memory chunk with pointer to its parent memory
pub struct ChunkReference {
pub result_set_id: String,
pub chunk: Box<MemoryChunkResponse>,
pub memory_index: i32,
pub relevance_score: f64,
}Referenced types: MemoryChunkResponse.
Fields
result_set_id
pub result_set_id: String
Result set ID that produced this chunk
Wire name: resultSetId.
chunk
pub chunk: Box<MemoryChunkResponse>
The memory chunk data
Wire name: chunk.
memory_index
pub memory_index: i32
Index of the chunk's memory in the client's memories array
Wire name: memoryIndex.
relevance_score
pub relevance_score: f64
Relevance score for this chunk (0.0 to 1.0)
Wire name: relevanceScore.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for ChunkReferenceimpl std::fmt::Debug for ChunkReference