pub struct MemRecalledMessage {
pub role: String,
pub content: String,
pub score: f32,
}Expand description
A recalled message projection used by context assembly.
Fields§
§role: StringMessage role: "user", "assistant", or "system".
content: StringMessage content.
score: f32Similarity score in [0, 1].
Trait Implementations§
Source§impl Clone for MemRecalledMessage
impl Clone for MemRecalledMessage
Source§fn clone(&self) -> MemRecalledMessage
fn clone(&self) -> MemRecalledMessage
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 moreAuto Trait Implementations§
impl Freeze for MemRecalledMessage
impl RefUnwindSafe for MemRecalledMessage
impl Send for MemRecalledMessage
impl Sync for MemRecalledMessage
impl Unpin for MemRecalledMessage
impl UnsafeUnpin for MemRecalledMessage
impl UnwindSafe for MemRecalledMessage
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