pub struct AddOptions<'a> {
pub user_id: Option<&'a str>,
pub agent_id: Option<&'a str>,
pub run_id: Option<&'a str>,
pub metadata: Option<&'a Value>,
pub infer: bool,
}Expand description
Options for the MemoryEngine::add() method.
Fields§
§user_id: Option<&'a str>§agent_id: Option<&'a str>§run_id: Option<&'a str>§metadata: Option<&'a Value>§infer: boolImplementations§
Source§impl<'a> AddOptions<'a>
impl<'a> AddOptions<'a>
Trait Implementations§
Source§impl<'a> Clone for AddOptions<'a>
impl<'a> Clone for AddOptions<'a>
Source§fn clone(&self) -> AddOptions<'a>
fn clone(&self) -> AddOptions<'a>
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<'a> Debug for AddOptions<'a>
impl<'a> Debug for AddOptions<'a>
Source§impl<'a> Default for AddOptions<'a>
impl<'a> Default for AddOptions<'a>
Source§fn default() -> AddOptions<'a>
fn default() -> AddOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for AddOptions<'a>
impl<'a> RefUnwindSafe for AddOptions<'a>
impl<'a> Send for AddOptions<'a>
impl<'a> Sync for AddOptions<'a>
impl<'a> Unpin for AddOptions<'a>
impl<'a> UnsafeUnpin for AddOptions<'a>
impl<'a> UnwindSafe for AddOptions<'a>
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