pub struct ZkrStore { /* private fields */ }Implementations§
Source§impl ZkrStore
impl ZkrStore
pub fn open( path: &Path, tenant_id: impl Into<String>, person_id: impl Into<String>, ) -> Result<Self>
pub async fn remember( &self, text: String, kind: SourceKind, ingestion_key: Option<String>, claim: Option<ClaimInput>, captured_at: i64, ) -> Result<Remembered>
pub async fn search(&self, query: String, limit: u32) -> Result<RetrievalPack>
pub async fn get(&self, kind: &str, id: String) -> Result<RetrievalItem>
pub async fn correct( &self, claim_id: String, text: String, value: String, valid_at: i64, ) -> Result<Corrected>
pub async fn delete(&self, source_id: String) -> Result<Deleted>
pub async fn profiles(&self, limit: u32) -> Result<Vec<ProfileEntry>>
pub async fn capture_turn( &self, chat_id: &str, message_id: &str, user: &str, assistant: &str, captured_at: i64, ) -> Result<()>
pub async fn context(&self, query: &str, limit: u32) -> Result<Option<String>>
pub async fn record_reflection( &self, context: &str, action: &str, outcome: &str, lesson: &str, ) -> Result<Remembered>
pub async fn augment_prompt(&self, query: &str, base: &str) -> Result<String>
Auto Trait Implementations§
impl !RefUnwindSafe for ZkrStore
impl !UnwindSafe for ZkrStore
impl Freeze for ZkrStore
impl Send for ZkrStore
impl Sync for ZkrStore
impl Unpin for ZkrStore
impl UnsafeUnpin for ZkrStore
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