pub struct ContextEntry {
pub id: String,
pub content: String,
pub entry_type: EntryType,
pub tokens: usize,
pub priority: u8,
pub importance: f64,
pub created_at: f64,
pub metadata: HashMap<String, String>,
}Expand description
A context entry (message, tile, system prompt, etc.).
Fields§
§id: String§content: String§entry_type: EntryType§tokens: usize§priority: u8§importance: f64§created_at: f64§metadata: HashMap<String, String>Trait Implementations§
Source§impl Clone for ContextEntry
impl Clone for ContextEntry
Source§fn clone(&self) -> ContextEntry
fn clone(&self) -> ContextEntry
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 ContextEntry
impl Debug for ContextEntry
Source§impl<'de> Deserialize<'de> for ContextEntry
impl<'de> Deserialize<'de> for ContextEntry
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 ContextEntry
impl RefUnwindSafe for ContextEntry
impl Send for ContextEntry
impl Sync for ContextEntry
impl Unpin for ContextEntry
impl UnsafeUnpin for ContextEntry
impl UnwindSafe for ContextEntry
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