pub struct SessionMemoryConfig {
pub min_tokens_before_extraction: u64,
pub max_tokens: u64,
pub min_text_messages: usize,
pub growth_ratio: f64,
pub storage_dir: PathBuf,
pub extraction_callback: Option<SessionMemoryExtractionCallback>,
pub extraction_backend: Option<String>,
pub extraction_model: Option<String>,
pub token_model: String,
}Fields§
§min_tokens_before_extraction: u64§max_tokens: u64§min_text_messages: usize§growth_ratio: f64§storage_dir: PathBuf§extraction_callback: Option<SessionMemoryExtractionCallback>§extraction_backend: Option<String>§extraction_model: Option<String>§token_model: StringTrait Implementations§
Source§impl Clone for SessionMemoryConfig
impl Clone for SessionMemoryConfig
Source§fn clone(&self) -> SessionMemoryConfig
fn clone(&self) -> SessionMemoryConfig
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 SessionMemoryConfig
impl Debug for SessionMemoryConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SessionMemoryConfig
impl !UnwindSafe for SessionMemoryConfig
impl Freeze for SessionMemoryConfig
impl Send for SessionMemoryConfig
impl Sync for SessionMemoryConfig
impl Unpin for SessionMemoryConfig
impl UnsafeUnpin for SessionMemoryConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.