File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919use async_trait:: async_trait;
2020
21+ use crate :: capabilities:: Capability ;
2122use crate :: chunks:: Chunk ;
2223use crate :: error:: MemoryError ;
2324use crate :: provider:: types:: { IngestItem , IngestOutcome , SourceScope } ;
@@ -146,12 +147,16 @@ pub trait MemoryDocuments: Send + Sync {
146147 ///
147148 /// # Errors
148149 ///
149- /// Backend failures only; an empty namespace returns empty context.
150+ /// [`MemoryError::Unsupported`] when a provider predating this optional
151+ /// operation does not implement it, otherwise backend failures. An empty
152+ /// namespace returns empty context.
150153 async fn recall_documents (
151154 & self ,
152- namespace : & str ,
153- limit : usize ,
154- ) -> Result < NamespaceRetrievalContext , MemoryError > ;
155+ _namespace : & str ,
156+ _limit : usize ,
157+ ) -> Result < NamespaceRetrievalContext , MemoryError > {
158+ Err ( MemoryError :: unsupported ( Capability :: Documents ) )
159+ }
155160}
156161
157162/// The time-ordered summary tree: buffered leaves rolled up into hour → day →
You can’t perform that action at this time.
0 commit comments