pub struct MemoryAuto {
pub kind: Kind,
pub context_length: Option<i32>,
pub memory_id: Option<String>,
}Expand description
MemoryAuto : Deprecated, still read as it was written: the run’s memory id, else the memory_id here. The step’s own memory_id is not read while this kind is set; switch the kind to window to use it. Without a context_length, or with 0, it is off and reads previous_messages.
Fields§
§kind: Kind§context_length: Option<i32>Maximum number of messages to retain in context
memory_id: Option<String>Identifier for persistent memory across agent invocations
Implementations§
Source§impl MemoryAuto
impl MemoryAuto
Sourcepub fn new(kind: Kind) -> MemoryAuto
pub fn new(kind: Kind) -> MemoryAuto
Deprecated, still read as it was written: the run’s memory id, else the memory_id here. The step’s own memory_id is not read while this kind is set; switch the kind to window to use it. Without a context_length, or with 0, it is off and reads previous_messages.
Trait Implementations§
Source§impl Clone for MemoryAuto
impl Clone for MemoryAuto
Source§impl Debug for MemoryAuto
impl Debug for MemoryAuto
Source§impl Default for MemoryAuto
impl Default for MemoryAuto
Source§impl<'de> Deserialize<'de> for MemoryAuto
impl<'de> Deserialize<'de> for MemoryAuto
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 MemoryAuto
impl PartialEq for MemoryAuto
Source§impl Serialize for MemoryAuto
impl Serialize for MemoryAuto
impl StructuralPartialEq for MemoryAuto
Auto Trait Implementations§
impl Freeze for MemoryAuto
impl RefUnwindSafe for MemoryAuto
impl Send for MemoryAuto
impl Sync for MemoryAuto
impl Unpin for MemoryAuto
impl UnsafeUnpin for MemoryAuto
impl UnwindSafe for MemoryAuto
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