pub struct SqliteMemory { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Memory for SqliteMemory
impl Memory for SqliteMemory
fn repo_map(&self, root: &Path) -> RepoMap
fn identity(&self, agent: &str) -> Option<Identity>
fn save_identity(&self, agent: &str, identity: &Identity) -> Result<()>
fn task(&self, run: &RunId) -> Option<TaskMem>
fn save_task(&self, task: &TaskMem) -> Result<()>
fn post_signal(&self, signal: SharedSignal) -> Result<()>
fn upsert_doc(&self, doc: WorkingDoc) -> Result<()>
fn remember(&self, fact: Fact) -> Result<()>
fn recall(&self, q: &str, k: usize) -> Vec<Fact>
fn all_facts(&self) -> Vec<Fact>
fn forget(&self, id: &str) -> Result<()>
fn memory_doc(&self, kind: MemoryDocKind) -> Option<MemoryDoc>
fn upsert_memory_doc(&self, kind: MemoryDocKind, content: &str) -> Result<()>
fn remove_memory_doc(&self, kind: MemoryDocKind) -> Result<()>
fn memory_stats(&self) -> MemoryStats
fn consolidate_memory(&self) -> Result<()>
fn cache_discovered_models( &self, provider_id: &str, models: &[String], ) -> Result<()>
fn get_discovered_models(&self, provider_id: &str) -> Vec<String>
fn upsert_graph_node(&self, node: GraphNode) -> Result<()>
fn upsert_graph_edge(&self, edge: GraphEdge) -> Result<()>
fn graph_node(&self, id: &str) -> Option<GraphNode>
fn graph_neighbors( &self, id: &str, direction: GraphDirection, limit: usize, ) -> Vec<(GraphEdge, GraphNode)>
fn search_graph(&self, query: &str, limit: usize) -> Vec<GraphNode>
fn graph_export(&self) -> KnowledgeGraph
fn delete_graph_node(&self, id: &str) -> Result<()>
fn delete_graph_edge(&self, id: &str) -> Result<()>
Auto Trait Implementations§
impl !Freeze for SqliteMemory
impl RefUnwindSafe for SqliteMemory
impl Send for SqliteMemory
impl Sync for SqliteMemory
impl Unpin for SqliteMemory
impl UnsafeUnpin for SqliteMemory
impl UnwindSafe for SqliteMemory
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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