Skip to main content

KernelMemoryApplicationService

Struct KernelMemoryApplicationService 

Source
pub struct KernelMemoryApplicationService<G, D, S, E, W> { /* private fields */ }

Implementations§

Source§

impl<G, D, S, E, W> KernelMemoryApplicationService<G, D, S, E, W>

Source

pub fn new( query_application: Arc<QueryApplicationService<G, D, S>>, command_application: Arc<CommandApplicationService<E, W>>, ) -> Self

Source§

impl<G, D, S, E, W> KernelMemoryApplicationService<G, D, S, E, W>

Source

pub async fn ingest( &self, command: MemoryIngestCommand, ) -> Result<MemoryIngestOutcome, ApplicationError>

Source

pub async fn list_abouts(&self) -> Result<Vec<String>, ApplicationError>

The abouts the memory currently indexes, for consumers that render an index of what can be recalled — a viewer’s sidebar, a CLI listing.

Source

pub async fn wake( &self, query: WakeMemoryQuery, ) -> Result<GetContextResult, ApplicationError>

Source

pub async fn ask( &self, query: AskMemoryQuery, ) -> Result<GetContextResult, ApplicationError>

Source

pub async fn temporal( &self, query: TemporalMemoryQuery, ) -> Result<TemporalMemoryResult, ApplicationError>

Source

pub async fn trace( &self, query: TraceMemoryQuery, ) -> Result<GetContextPathResult, ApplicationError>

Source

pub async fn inspect( &self, query: InspectMemoryQuery, ) -> Result<InspectMemoryResult, ApplicationError>

Auto Trait Implementations§

§

impl<G, D, S, E, W> Freeze for KernelMemoryApplicationService<G, D, S, E, W>

§

impl<G, D, S, E, W> RefUnwindSafe for KernelMemoryApplicationService<G, D, S, E, W>

§

impl<G, D, S, E, W> Send for KernelMemoryApplicationService<G, D, S, E, W>
where G: Sync + Send, D: Sync + Send, S: Sync + Send, W: Sync + Send, E: Sync + Send,

§

impl<G, D, S, E, W> Sync for KernelMemoryApplicationService<G, D, S, E, W>
where G: Sync + Send, D: Sync + Send, S: Sync + Send, W: Sync + Send, E: Sync + Send,

§

impl<G, D, S, E, W> Unpin for KernelMemoryApplicationService<G, D, S, E, W>

§

impl<G, D, S, E, W> UnsafeUnpin for KernelMemoryApplicationService<G, D, S, E, W>

§

impl<G, D, S, E, W> UnwindSafe for KernelMemoryApplicationService<G, D, S, E, W>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.