pub struct GraphExtractionUnit { /* private fields */ }Expand description
Extraction against the daemon’s own store, with a provider built from
config. Runs exactly what recall-echo graph extract runs.
Implementations§
Source§impl GraphExtractionUnit
impl GraphExtractionUnit
pub fn new( graph: Arc<GraphMemory>, llm: Box<dyn LlmProvider>, conversations_dir: PathBuf, quarantine_path: PathBuf, ) -> Self
Trait Implementations§
Source§impl ExtractionUnit for GraphExtractionUnit
impl ExtractionUnit for GraphExtractionUnit
Source§fn pending<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<u32>, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn pending<'life0, 'async_trait>(
&'life0 self,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<u32>, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Log numbers still awaiting extraction, at most
limit of them.Source§fn extract<'life0, 'async_trait>(
&'life0 self,
log_number: u32,
) -> Pin<Box<dyn Future<Output = Result<UnitReport, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn extract<'life0, 'async_trait>(
&'life0 self,
log_number: u32,
) -> Pin<Box<dyn Future<Output = Result<UnitReport, GraphError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Extract one archive and mark it extracted. Marking is the last thing it
does, so a failure or an interruption leaves the archive pending.
Source§fn quarantine<'life0, 'life1, 'async_trait>(
&'life0 self,
log_number: u32,
_reason: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn quarantine<'life0, 'life1, 'async_trait>(
&'life0 self,
log_number: u32,
_reason: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stop offering this archive: it has failed [
MAX_UNIT_ATTEMPTS] times.Auto Trait Implementations§
impl !RefUnwindSafe for GraphExtractionUnit
impl !UnwindSafe for GraphExtractionUnit
impl Freeze for GraphExtractionUnit
impl Send for GraphExtractionUnit
impl Sync for GraphExtractionUnit
impl Unpin for GraphExtractionUnit
impl UnsafeUnpin for GraphExtractionUnit
Blanket Implementations§
impl<T> AsyncFriendly for T
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
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request