pub struct RecallToolService;Expand description
Service for recall operations used by MCP tools.
Implementations§
Source§impl RecallToolService
impl RecallToolService
Sourcepub async fn search_memory(
&self,
repo: &MemoryRepository,
namespace_id: i64,
perspective: &PerspectiveKey,
cognitive_level: Option<CognitiveLevel>,
limit: i64,
) -> Result<Vec<Memory>, AgentError>
pub async fn search_memory( &self, repo: &MemoryRepository, namespace_id: i64, perspective: &PerspectiveKey, cognitive_level: Option<CognitiveLevel>, limit: i64, ) -> Result<Vec<Memory>, AgentError>
Search memories by perspective, optionally filtered by cognitive level.
Sourcepub async fn get_session_digest(
&self,
repo: &MemoryRepository,
namespace_id: i64,
session_key: &str,
) -> Result<(Option<Memory>, Option<Memory>), AgentError>
pub async fn get_session_digest( &self, repo: &MemoryRepository, namespace_id: i64, session_key: &str, ) -> Result<(Option<Memory>, Option<Memory>), AgentError>
Get session digests (short and long) for a given session.
Sourcepub async fn get_memory_lineage(
&self,
repo: &MemoryRepository,
memory_id: i64,
) -> Result<Vec<MemoryLineageEntry>, AgentError>
pub async fn get_memory_lineage( &self, repo: &MemoryRepository, memory_id: i64, ) -> Result<Vec<MemoryLineageEntry>, AgentError>
Get the lineage (evidence links) for a memory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecallToolService
impl RefUnwindSafe for RecallToolService
impl Send for RecallToolService
impl Sync for RecallToolService
impl Unpin for RecallToolService
impl UnsafeUnpin for RecallToolService
impl UnwindSafe for RecallToolService
Blanket Implementations§
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 more