pub struct ConversationMemory { /* private fields */ }Expand description
简单的对话记忆:仅按消息条数做 FIFO 截断,不涉及 token 计算。
Implementations§
Trait Implementations§
Source§impl Clone for ConversationMemory
impl Clone for ConversationMemory
Source§fn clone(&self) -> ConversationMemory
fn clone(&self) -> ConversationMemory
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 moreAuto Trait Implementations§
impl Freeze for ConversationMemory
impl RefUnwindSafe for ConversationMemory
impl Send for ConversationMemory
impl Sync for ConversationMemory
impl Unpin for ConversationMemory
impl UnsafeUnpin for ConversationMemory
impl UnwindSafe for ConversationMemory
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