pub struct MemoryToolArgs {Show 24 fields
pub action: String,
pub queries: Option<Vec<String>>,
pub query: Option<String>,
pub statements: Option<Vec<String>>,
pub statement: Option<String>,
pub id: Option<String>,
pub ids: Option<Vec<String>>,
pub updates: Option<Vec<Value>>,
pub scope: Option<String>,
pub namespace: Option<String>,
pub key: Option<String>,
pub ttl: Option<String>,
pub limit: Option<usize>,
pub kb_name: Option<String>,
pub facts: Option<Vec<String>>,
pub content: Option<String>,
pub topic: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub creations: Option<Vec<String>>,
pub deletions: Option<Vec<String>>,
pub tag: Option<String>,
pub data: Option<String>,
pub description: Option<String>,
pub sub_action: Option<String>,
}Expand description
Arguments for memory tool
Fields§
§action: String§queries: Option<Vec<String>>Query for recall
query: Option<String>Single query
statements: Option<Vec<String>>Statements to store
statement: Option<String>Single statement
id: Option<String>Memory ID for update/delete
ids: Option<Vec<String>>Memory IDs for batch operations
updates: Option<Vec<Value>>Updates for batch update
scope: Option<String>Scope
namespace: Option<String>Namespace (alias for scope)
key: Option<String>Key for key-based storage
ttl: Option<String>TTL as ISO date string
limit: Option<usize>Limit results
kb_name: Option<String>Knowledge base name
facts: Option<Vec<String>>Facts to store
content: Option<String>Content to summarize
topic: Option<String>Topic for summary
metadata: Option<HashMap<String, Value>>Metadata
creations: Option<Vec<String>>Creations for manage
deletions: Option<Vec<String>>Deletions for manage
tag: Option<String>Tag name for tag/untag
data: Option<String>JSON data for import
description: Option<String>Description for kb create
sub_action: Option<String>Sub-action for kb management
Trait Implementations§
Source§impl Clone for MemoryToolArgs
impl Clone for MemoryToolArgs
Source§fn clone(&self) -> MemoryToolArgs
fn clone(&self) -> MemoryToolArgs
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 MemoryToolArgs
impl Debug for MemoryToolArgs
Source§impl Default for MemoryToolArgs
impl Default for MemoryToolArgs
Source§fn default() -> MemoryToolArgs
fn default() -> MemoryToolArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryToolArgs
impl<'de> Deserialize<'de> for MemoryToolArgs
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
Auto Trait Implementations§
impl Freeze for MemoryToolArgs
impl RefUnwindSafe for MemoryToolArgs
impl Send for MemoryToolArgs
impl Sync for MemoryToolArgs
impl Unpin for MemoryToolArgs
impl UnsafeUnpin for MemoryToolArgs
impl UnwindSafe for MemoryToolArgs
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more