use crate::{MemoryOperations, Result, types::*};
impl MemoryOperations {
pub async fn recall(&self, query: &str, scope: Option<&str>, limit: Option<usize>) -> Result<SearchResponse> {
let normalized_scope = Self::normalize_scope(scope);
let search_args = SearchArgs {
query: query.to_string(),
recursive: Some(true),
return_layers: Some(vec!["L0".to_string(), "L2".to_string()]),
scope: Some(normalized_scope),
limit,
};
self.search(search_args).await
}
}