pub struct RenderedMemoryView {
pub content: String,
pub content_hash: String,
pub token_count: u32,
pub quality: MemoryQualityView,
}Expand description
The rendered context, ready for a reader.
content_hash covers content exactly: a consumer that hands the text to
a model can verify the model received what the kernel rendered, and cite
the hash instead of quoting itself.
Fields§
§content: String§content_hash: String§token_count: u32§quality: MemoryQualityViewTrait Implementations§
Source§impl Clone for RenderedMemoryView
impl Clone for RenderedMemoryView
Source§fn clone(&self) -> RenderedMemoryView
fn clone(&self) -> RenderedMemoryView
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 RenderedMemoryView
impl Debug for RenderedMemoryView
Source§impl<'de> Deserialize<'de> for RenderedMemoryView
impl<'de> Deserialize<'de> for RenderedMemoryView
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 RenderedMemoryView
impl PartialEq for RenderedMemoryView
Source§impl Serialize for RenderedMemoryView
impl Serialize for RenderedMemoryView
impl StructuralPartialEq for RenderedMemoryView
Auto Trait Implementations§
impl Freeze for RenderedMemoryView
impl RefUnwindSafe for RenderedMemoryView
impl Send for RenderedMemoryView
impl Sync for RenderedMemoryView
impl Unpin for RenderedMemoryView
impl UnsafeUnpin for RenderedMemoryView
impl UnwindSafe for RenderedMemoryView
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