pub struct SqliteMemory { /* private fields */ }Expand description
Long-term memory in SQLite.
Implementations§
Source§impl SqliteMemory
impl SqliteMemory
pub async fn canonical_memory_health(&self) -> Result<MemoryHealthReport>
pub async fn graph_fact_ids_for_query( &self, query: &str, ) -> Result<HashSet<i64>>
pub async fn search_embedding_owners( &self, query: &[f32], owner_type: &str, purpose: &str, limit: usize, ) -> Result<Vec<EmbeddingHit>>
pub async fn fact_embedding_scores( &self, query: &[f32], limit: usize, ) -> Result<HashMap<i64, f32>>
pub async fn episode_embedding_scores( &self, query: &[f32], limit: usize, ) -> Result<HashMap<i64, f32>>
pub async fn upsert_owner_embedding( &self, owner_type: &str, owner_id: i64, purpose: &str, content: &str, embedding: Vec<f32>, ) -> Result<()>
pub async fn project_fact_memory(&self, fact_id: i64) -> Result<()>
pub async fn project_episode_memory(&self, episode_id: i64) -> Result<()>
pub async fn rebuild_memory_projections(&self) -> Result<(usize, usize)>
pub async fn backfill_missing_memory_projections( &self, ) -> Result<(usize, usize, usize, usize, usize)>
pub async fn sync_fact_memory_category(&self, category: &str) -> Result<()>
Sourcepub async fn search_memory_claims(
&self,
query: &str,
channel_id: Option<&str>,
visibility: ChannelVisibility,
requester_is_owner: bool,
limit: usize,
) -> Result<Vec<MemoryClaimRecord>>
pub async fn search_memory_claims( &self, query: &str, channel_id: Option<&str>, visibility: ChannelVisibility, requester_is_owner: bool, limit: usize, ) -> Result<Vec<MemoryClaimRecord>>
FTS5 claim search with visibility and temporal filtering at the owner row.
Sourcepub async fn memory_graph_neighbors(
&self,
start_entity_id: i64,
max_depth: usize,
channel_id: Option<&str>,
visibility: ChannelVisibility,
requester_is_owner: bool,
) -> Result<Vec<GraphNeighbor>>
pub async fn memory_graph_neighbors( &self, start_entity_id: i64, max_depth: usize, channel_id: Option<&str>, visibility: ChannelVisibility, requester_is_owner: bool, ) -> Result<Vec<GraphNeighbor>>
Traverse active graph edges to at most max_depth (clamped to two).
pub async fn persist_extracted_fact_graph( &self, category: &str, key: &str, source_excerpt: &str, graph: &ExtractedMemoryGraph, ) -> Result<()>
Source§impl SqliteMemory
impl SqliteMemory
Sourcepub async fn export_readable(&self) -> Result<Vec<ExportFile>>
pub async fn export_readable(&self) -> Result<Vec<ExportFile>>
The memory as Markdown files. Reads only.
Source§impl SqliteMemory
impl SqliteMemory
Sourcepub async fn fold_candidates(&self) -> Result<Vec<FoldCandidate>>
pub async fn fold_candidates(&self) -> Result<Vec<FoldCandidate>>
Every active fact with a vector, as the fold planner reads it.
Source§impl SqliteMemory
impl SqliteMemory
pub async fn insert_episode(&self, episode: &Episode) -> Result<i64>
Sourcepub async fn get_relevant_episodes(
&self,
query: &str,
limit: usize,
) -> Result<Vec<Episode>>
pub async fn get_relevant_episodes( &self, query: &str, limit: usize, ) -> Result<Vec<Episode>>
Get episodes relevant to a query using embedding similarity.
Sourcepub async fn get_recent_episodes(&self, limit: usize) -> Result<Vec<Episode>>
pub async fn get_recent_episodes(&self, limit: usize) -> Result<Vec<Episode>>
Get most recent episodes.
Sourcepub async fn increment_episode_recall(&self, episode_id: i64) -> Result<()>
pub async fn increment_episode_recall(&self, episode_id: i64) -> Result<()>
Increment recall count for an episode.
Sourcepub async fn update_episode_embedding(
&self,
episode_id: i64,
embedding: &[f32],
) -> Result<()>
pub async fn update_episode_embedding( &self, episode_id: i64, embedding: &[f32], ) -> Result<()>
Update episode embedding.
Sourcepub async fn forget_other_models_vectors(&self) -> Result<u64>
pub async fn forget_other_models_vectors(&self) -> Result<u64>
Drops every vector another embedding model wrote, so the backfills
re-embed with this one. Two models’ vectors do not share a space:
compared, they score noise, even at the same dimension. The vectors
on facts, episodes, procedures and error_solutions carry no
model, so they go too when the index holds another model’s.
Every row of memory_embeddings is derived (from those columns, or
recomputed on demand), so the whole index is dropped with them.
Returns how many of another model’s indexed vectors there were (0:
nothing changed).
Sourcepub async fn backfill_episode_embeddings(&self) -> Result<usize>
pub async fn backfill_episode_embeddings(&self) -> Result<usize>
Backfill missing episode embeddings. Called on startup to ensure all episodes have embeddings for semantic search.
Sourcepub async fn backfill_fact_embeddings(&self) -> Result<usize>
pub async fn backfill_fact_embeddings(&self) -> Result<usize>
Backfill missing fact embeddings. Called on startup to ensure all active facts have pre-computed embeddings.
Sourcepub async fn get_user_profile(&self) -> Result<UserProfile>
pub async fn get_user_profile(&self) -> Result<UserProfile>
Get or create the user profile.
Sourcepub async fn update_user_profile(&self, profile: &UserProfile) -> Result<()>
pub async fn update_user_profile(&self, profile: &UserProfile) -> Result<()>
Update user profile fields.
Sourcepub async fn insert_behavior_pattern(
&self,
pattern: &BehaviorPattern,
) -> Result<i64>
pub async fn insert_behavior_pattern( &self, pattern: &BehaviorPattern, ) -> Result<i64>
Insert a new behavior pattern.
Sourcepub async fn get_behavior_patterns(
&self,
min_confidence: f32,
) -> Result<Vec<BehaviorPattern>>
pub async fn get_behavior_patterns( &self, min_confidence: f32, ) -> Result<Vec<BehaviorPattern>>
Get behavior patterns above a confidence threshold.
Sourcepub async fn record_behavior_pattern(
&self,
pattern_type: &str,
description: &str,
trigger_context: Option<&str>,
action: Option<&str>,
confidence_hint: f32,
occurrence_delta: i32,
) -> Result<()>
pub async fn record_behavior_pattern( &self, pattern_type: &str, description: &str, trigger_context: Option<&str>, action: Option<&str>, confidence_hint: f32, occurrence_delta: i32, ) -> Result<()>
Insert or update a behavior pattern by logical key (pattern_type + trigger_context + action).
Sourcepub async fn update_behavior_pattern(
&self,
pattern_id: i64,
confidence_delta: f32,
) -> Result<()>
pub async fn update_behavior_pattern( &self, pattern_id: i64, confidence_delta: f32, ) -> Result<()>
Update pattern occurrence and confidence.
Sourcepub async fn insert_procedure(&self, procedure: &Procedure) -> Result<i64>
pub async fn insert_procedure(&self, procedure: &Procedure) -> Result<i64>
Insert a new procedure.
Sourcepub async fn get_relevant_procedures(
&self,
query: &str,
limit: usize,
) -> Result<Vec<Procedure>>
pub async fn get_relevant_procedures( &self, query: &str, limit: usize, ) -> Result<Vec<Procedure>>
Get procedures relevant to a query.
Sourcepub async fn update_procedure(
&self,
procedure_id: i64,
success: bool,
new_steps: Option<&[String]>,
duration_secs: Option<f32>,
) -> Result<()>
pub async fn update_procedure( &self, procedure_id: i64, success: bool, new_steps: Option<&[String]>, duration_secs: Option<f32>, ) -> Result<()>
Update procedure success/failure and optionally update steps.
Sourcepub async fn get_or_create_expertise(&self, domain: &str) -> Result<Expertise>
pub async fn get_or_create_expertise(&self, domain: &str) -> Result<Expertise>
Get or create expertise for a domain.
Sourcepub async fn increment_expertise(
&self,
domain: &str,
success: bool,
error: Option<&str>,
) -> Result<()>
pub async fn increment_expertise( &self, domain: &str, success: bool, error: Option<&str>, ) -> Result<()>
Increment expertise counters and update level.
Sourcepub async fn insert_error_solution(
&self,
solution: &ErrorSolution,
) -> Result<i64>
pub async fn insert_error_solution( &self, solution: &ErrorSolution, ) -> Result<i64>
Insert a new error solution.
Sourcepub async fn get_relevant_error_solutions(
&self,
error: &str,
limit: usize,
) -> Result<Vec<ErrorSolution>>
pub async fn get_relevant_error_solutions( &self, error: &str, limit: usize, ) -> Result<Vec<ErrorSolution>>
Get error solutions relevant to an error message.
Sourcepub async fn update_error_solution(
&self,
solution_id: i64,
success: bool,
) -> Result<()>
pub async fn update_error_solution( &self, solution_id: i64, success: bool, ) -> Result<()>
Update error solution success/failure.
Sourcepub async fn get_fact_history(
&self,
category: &str,
key: &str,
) -> Result<Vec<Fact>>
pub async fn get_fact_history( &self, category: &str, key: &str, ) -> Result<Vec<Fact>>
Get the history of a fact (all versions including superseded).
Sourcepub async fn increment_fact_recall(&self, fact_id: i64) -> Result<()>
pub async fn increment_fact_recall(&self, fact_id: i64) -> Result<()>
Increment recall count for a fact.
Source§impl SqliteMemory
impl SqliteMemory
pub async fn reconcile_structured_personal_memory( &self, write: &PersonalMemoryWrite, source: &str, provenance: Option<&str>, channel: Option<&str>, privacy: FactPrivacy, ) -> Result<PersonalMemoryWriteResult>
pub async fn canonical_personal_facts(&self) -> Result<Vec<Fact>>
Sourcepub async fn retract_canonical_projection(
&self,
projected_id: i64,
source: &str,
) -> Result<bool>
pub async fn retract_canonical_projection( &self, projected_id: i64, source: &str, ) -> Result<bool>
Retracts the canonical record behind a projected id from
Self::canonical_personal_facts (owner and people facts, aliases and
relationship edges carry synthetic negative ids there). Returns whether
an active record was retracted.
Sourcepub async fn retract_owner_profile_key(
&self,
key: &str,
source: &str,
) -> Result<bool>
pub async fn retract_owner_profile_key( &self, key: &str, source: &str, ) -> Result<bool>
Retracts the owner’s canonical facts and aliases a profile key names
(residence, birthday, name, …): forgetting [user] residence
must reach the store the owner block is rendered from, not only the
legacy row. Returns whether anything was retracted.
Sourcepub async fn backfill_structured_personal_memory(&self) -> Result<usize>
pub async fn backfill_structured_personal_memory(&self) -> Result<usize>
Conservatively dual-writes only unambiguous owner-profile legacy keys. Relationship-shaped and compound-name facts stay untouched and pending.
Source§impl SqliteMemory
impl SqliteMemory
Sourcepub fn new(pool: SqlitePool, embedder: Arc<dyn Embedder>) -> Self
pub fn new(pool: SqlitePool, embedder: Arc<dyn Embedder>) -> Self
Memory over pool, whose tables migrate has created.
Sourcepub fn with_channel_ids(self, channels: Arc<dyn ChannelIds>) -> Self
pub fn with_channel_ids(self, channels: Arc<dyn ChannelIds>) -> Self
Compares and derives channel ids the host’s way.
Sourcepub fn with_error_cleaner(self, clean: fn(&str) -> String) -> Self
pub fn with_error_cleaner(self, clean: fn(&str) -> String) -> Self
Strips host text (wrappers, notices) from an error before its recurrence pattern is derived.
Sourcepub fn with_message_log(self, messages: Arc<dyn MessageLog>) -> Self
pub fn with_message_log(self, messages: Arc<dyn MessageLog>) -> Self
Links episodes to the host’s messages (see MessageLog).
Sourcepub fn pool(&self) -> &SqlitePool
pub fn pool(&self) -> &SqlitePool
The pool the store works on.
Trait Implementations§
Source§impl Clone for SqliteMemory
impl Clone for SqliteMemory
Source§impl EpisodeStore for SqliteMemory
impl EpisodeStore for SqliteMemory
Source§fn record_session_episode<'life0, 'life1, 'async_trait>(
&'life0 self,
episode: &'life1 SessionEpisode,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_session_episode<'life0, 'life1, 'async_trait>(
&'life0 self,
episode: &'life1 SessionEpisode,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Insert the episode with the event span it covers, then embed its summary and project it into the memory index. Multiple episodes per session are allowed (mid-session ones for long conversations, then a final one when the session goes idle).
Source§fn last_episode_bound<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<EpisodeBound>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn last_episode_bound<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<EpisodeBound>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn latest_episode_ends<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn latest_episode_ends<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
(session id, latest episode end time) for every session with an
episode.Source§fn project_episode_memory<'life0, 'async_trait>(
&'life0 self,
episode_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn project_episode_memory<'life0, 'async_trait>(
&'life0 self,
episode_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_relevant_episodes<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_relevant_episodes<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_relevant_episodes_for_channel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
channel_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_relevant_episodes_for_channel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
channel_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_relevant_episodes_for_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
session_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_relevant_episodes_for_session<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
session_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Episode>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§impl FactStore for SqliteMemory
impl FactStore for SqliteMemory
Source§fn search_facts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
config: &'life2 FactSearchConfig,
) -> Pin<Box<dyn Future<Output = Result<FactSearchReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn search_facts<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
config: &'life2 FactSearchConfig,
) -> Pin<Box<dyn Future<Output = Result<FactSearchReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
crate::search; a store only gathers facts
and scores. The default returns an empty report so stores without
search keep compiling.Source§fn stamp_fact_provenance<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
source: &'life3 str,
first_seen_at: Option<DateTime<Utc>>,
source_excerpt: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn stamp_fact_provenance<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
source: &'life3 str,
first_seen_at: Option<DateTime<Utc>>,
source_excerpt: Option<&'life4 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn reconcile_personal_memory<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
write: &'life1 PersonalMemoryWrite,
source: &'life2 str,
source_excerpt: Option<&'life3 str>,
channel_id: Option<&'life4 str>,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<PersonalMemoryWriteResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn reconcile_personal_memory<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
write: &'life1 PersonalMemoryWrite,
source: &'life2 str,
source_excerpt: Option<&'life3 str>,
channel_id: Option<&'life4 str>,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<PersonalMemoryWriteResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn get_canonical_memory_facts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_canonical_memory_facts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn record_memory_recall<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fact_ids: &'life1 [i64],
episode_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn record_memory_recall<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
fact_ids: &'life1 [i64],
episode_ids: &'life2 [i64],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn fold_restated_facts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fold_restated_facts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn memory_health_report<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MemoryHealthReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn repair_memory_projections<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MemoryHealthReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn refresh_fact_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn refresh_fact_memory<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn project_extracted_fact_graph<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
source_excerpt: &'life3 str,
graph: &'life4 ExtractedMemoryGraph,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn project_extracted_fact_graph<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
source_excerpt: &'life3 str,
graph: &'life4 ExtractedMemoryGraph,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn upsert_fact_with_provenance<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
channel_id: Option<&'life5 str>,
privacy: FactPrivacy,
first_seen_at: Option<DateTime<Utc>>,
source_excerpt: Option<&'life6 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
fn upsert_fact_with_provenance<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
channel_id: Option<&'life5 str>,
privacy: FactPrivacy,
first_seen_at: Option<DateTime<Utc>>,
source_excerpt: Option<&'life6 str>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Source§fn get_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
category: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
category: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_relevant_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
max: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_relevant_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
max: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
get_facts on error.Source§fn get_relevant_facts_for_channel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
max: usize,
channel_id: Option<&'life2 str>,
visibility: ChannelVisibility,
requester_is_owner: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_relevant_facts_for_channel<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
query: &'life1 str,
max: usize,
channel_id: Option<&'life2 str>,
visibility: ChannelVisibility,
requester_is_owner: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn update_fact_privacy<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_fact_privacy<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn delete_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn delete_fact_by_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_fact_by_key<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn get_all_facts_with_provenance<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_facts_with_provenance<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Fact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn upsert_fact<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
channel_id: Option<&'life5 str>,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn upsert_fact<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
channel_id: Option<&'life5 str>,
privacy: FactPrivacy,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Source§impl LearningStore for SqliteMemory
The daemon store implements the SDK memory crate’s learning contract.
impl LearningStore for SqliteMemory
The daemon store implements the SDK memory crate’s learning contract.
Source§fn get_behavior_patterns<'life0, 'async_trait>(
&'life0 self,
min_confidence: f32,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<BehaviorPattern>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_behavior_patterns<'life0, 'async_trait>(
&'life0 self,
min_confidence: f32,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<BehaviorPattern>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn record_behavior_pattern<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
pattern_type: &'life1 str,
description: &'life2 str,
trigger_context: Option<&'life3 str>,
action: Option<&'life4 str>,
confidence_hint: f32,
occurrence_delta: i32,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn record_behavior_pattern<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
pattern_type: &'life1 str,
description: &'life2 str,
trigger_context: Option<&'life3 str>,
action: Option<&'life4 str>,
confidence_hint: f32,
occurrence_delta: i32,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn get_relevant_procedures<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<Procedure>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_relevant_procedures<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<Procedure>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_relevant_error_solutions<'life0, 'life1, 'async_trait>(
&'life0 self,
error: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<ErrorSolution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_relevant_error_solutions<'life0, 'life1, 'async_trait>(
&'life0 self,
error: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<ErrorSolution>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_user_profile<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MemoryResult<Option<UserProfile>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_user_profile<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MemoryResult<Option<UserProfile>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn update_user_profile<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 UserProfile,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_user_profile<'life0, 'life1, 'async_trait>(
&'life0 self,
profile: &'life1 UserProfile,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn increment_expertise<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
domain: &'life1 str,
success: bool,
error: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn increment_expertise<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
domain: &'life1 str,
success: bool,
error: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn upsert_procedure<'life0, 'life1, 'async_trait>(
&'life0 self,
procedure: &'life1 Procedure,
) -> Pin<Box<dyn Future<Output = MemoryResult<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_procedure<'life0, 'life1, 'async_trait>(
&'life0 self,
procedure: &'life1 Procedure,
) -> Pin<Box<dyn Future<Output = MemoryResult<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update_procedure_outcome<'life0, 'async_trait>(
&'life0 self,
procedure_id: i64,
success: bool,
duration: Option<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_procedure_outcome<'life0, 'async_trait>(
&'life0 self,
procedure_id: i64,
success: bool,
duration: Option<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn insert_error_solution<'life0, 'life1, 'async_trait>(
&'life0 self,
solution: &'life1 ErrorSolution,
) -> Pin<Box<dyn Future<Output = MemoryResult<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn insert_error_solution<'life0, 'life1, 'async_trait>(
&'life0 self,
solution: &'life1 ErrorSolution,
) -> Pin<Box<dyn Future<Output = MemoryResult<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn update_error_solution_outcome<'life0, 'async_trait>(
&'life0 self,
solution_id: i64,
success: bool,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_error_solution_outcome<'life0, 'async_trait>(
&'life0 self,
solution_id: i64,
success: bool,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn record_procedure_observation<'life0, 'life1, 'async_trait>(
&'life0 self,
procedure: &'life1 Procedure,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_procedure_observation<'life0, 'life1, 'async_trait>(
&'life0 self,
procedure: &'life1 Procedure,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
upsert_procedure, a name already known
keeps its stored trigger, steps and failure count and gains exactly
one success, so a later sighting cannot rewrite a definition.Source§fn record_error_solution_observation<'life0, 'life1, 'async_trait>(
&'life0 self,
solution: &'life1 ErrorSolution,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_error_solution_observation<'life0, 'life1, 'async_trait>(
&'life0 self,
solution: &'life1 ErrorSolution,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn record_task_outcome<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 str,
success: bool,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn record_task_outcome<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 str,
success: bool,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
increment_expertise, this only moves
the counters; the level and confidence stay as stored.Source§fn procedure_trigger_embeddings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<Vec<f32>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn procedure_trigger_embeddings<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<Vec<f32>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn set_procedure_trigger_embedding<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
embedding: &'life2 [f32],
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn set_procedure_trigger_embedding<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
embedding: &'life2 [f32],
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn procedures_missing_embedding<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<(i64, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn procedures_missing_embedding<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<(i64, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
limit procedures (id, trigger) with no current embedding.Source§fn save_procedure_embedding<'life0, 'life1, 'async_trait>(
&'life0 self,
id: i64,
trigger: &'life1 str,
embedding: Vec<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_procedure_embedding<'life0, 'life1, 'async_trait>(
&'life0 self,
id: i64,
trigger: &'life1 str,
embedding: Vec<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
trigger.Source§fn error_solutions_missing_embedding<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<(i64, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn error_solutions_missing_embedding<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = MemoryResult<Vec<(i64, String)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
limit error solutions (id, pattern) with no current embedding.Source§fn save_error_solution_embedding<'life0, 'life1, 'async_trait>(
&'life0 self,
id: i64,
pattern: &'life1 str,
embedding: Vec<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_error_solution_embedding<'life0, 'life1, 'async_trait>(
&'life0 self,
id: i64,
pattern: &'life1 str,
embedding: Vec<f32>,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
pattern.Source§impl MemoryDecay for SqliteMemory
Fading of unrecalled facts, episodes and behavior patterns.
impl MemoryDecay for SqliteMemory
Fading of unrecalled facts, episodes and behavior patterns.
Source§impl MemoryGraphStore for SqliteMemory
impl MemoryGraphStore for SqliteMemory
fn upsert_entity<'life0, 'async_trait>(
&'life0 self,
entity: GraphEntityUpsert,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn upsert_edge<'life0, 'async_trait>(
&'life0 self,
edge: GraphEdgeUpsert,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn invalidate_claim<'life0, 'life1, 'async_trait>(
&'life0 self,
claim_id: i64,
valid_to: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn neighbors<'life0, 'life1, 'async_trait>(
&'life0 self,
start_entity_id: i64,
max_depth: usize,
scope: &'life1 GraphSearchScope,
) -> Pin<Box<dyn Future<Output = Result<Vec<GraphNeighbor>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl PeopleStore for SqliteMemory
impl PeopleStore for SqliteMemory
Source§fn upsert_person<'life0, 'life1, 'async_trait>(
&'life0 self,
person: &'life1 Person,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert_person<'life0, 'life1, 'async_trait>(
&'life0 self,
person: &'life1 Person,
) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_person<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_person<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_person_by_platform_id<'life0, 'life1, 'async_trait>(
&'life0 self,
platform_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_person_by_platform_id<'life0, 'life1, 'async_trait>(
&'life0 self,
platform_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn find_person_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_person_by_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn get_all_people<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all_people<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<Person>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn delete_person<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_person<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn link_platform_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
person_id: i64,
platform_id: &'life1 str,
display_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn link_platform_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
person_id: i64,
platform_id: &'life1 str,
display_name: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn touch_person_interaction<'life0, 'async_trait>(
&'life0 self,
person_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn touch_person_interaction<'life0, 'async_trait>(
&'life0 self,
person_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn upsert_person_fact<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
person_id: i64,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
confidence: f32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn upsert_person_fact<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
person_id: i64,
category: &'life1 str,
key: &'life2 str,
value: &'life3 str,
source: &'life4 str,
confidence: f32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn get_person_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
person_id: i64,
category: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PersonFact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_person_facts<'life0, 'life1, 'async_trait>(
&'life0 self,
person_id: i64,
category: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PersonFact>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn delete_person_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete_person_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn confirm_person_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn confirm_person_fact<'life0, 'async_trait>(
&'life0 self,
fact_id: i64,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_people_with_upcoming_dates<'life0, 'async_trait>(
&'life0 self,
within_days: i32,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Person, PersonFact)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_people_with_upcoming_dates<'life0, 'async_trait>(
&'life0 self,
within_days: i32,
) -> Pin<Box<dyn Future<Output = Result<Vec<(Person, PersonFact)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteMemory
impl !UnwindSafe for SqliteMemory
impl Forget for SqliteMemory
impl Freeze for SqliteMemory
impl Move for SqliteMemory
impl Send for SqliteMemory
impl Sync for SqliteMemory
impl Unpin for SqliteMemory
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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