or-recall 0.1.3

Short-term, long-term, and episodic memory stores for Orchustr agents.
Documentation
1
2
3
4
5
6
7
8
9
10
#![allow(async_fn_in_trait)]

use crate::domain::entities::{MemoryKind, RecallEntry};
use crate::domain::errors::RecallError;

#[cfg_attr(test, mockall::automock)]
pub trait RecallStore: Send + Sync + 'static {
    async fn store(&self, entry: RecallEntry) -> Result<(), RecallError>;
    async fn list(&self, kind: MemoryKind) -> Result<Vec<RecallEntry>, RecallError>;
}