#[non_exhaustive]pub struct MemoryConfig {
pub user: String,
pub session: String,
pub sqlite: Option<String>,
pub preamble: bool,
}Expand description
Memory settings for AgentBuilder::memory: the user and session
the facts belong to, an optional SQLite path, and whether known facts
are put in the system prompt (preamble).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.user: String§session: String§sqlite: Option<String>§preamble: boolImplementations§
Source§impl MemoryConfig
impl MemoryConfig
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§impl Debug for MemoryConfig
impl Debug for MemoryConfig
impl Eq for MemoryConfig
Source§impl PartialEq for MemoryConfig
impl PartialEq for MemoryConfig
impl StructuralPartialEq for MemoryConfig
Auto Trait Implementations§
impl Forget for MemoryConfig
impl Freeze for MemoryConfig
impl Move for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfigwhere
RawVecInner: Send,
impl Sync for MemoryConfigwhere
RawVecInner: Sync,
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfigwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.