pub struct KnowledgeBaseServiceImpl<S: GraphStorage> { /* private fields */ }Implementations§
Source§impl<S: GraphStorage> KnowledgeBaseServiceImpl<S>
impl<S: GraphStorage> KnowledgeBaseServiceImpl<S>
Trait Implementations§
Source§impl<S: GraphStorage> KnowledgeBaseService for KnowledgeBaseServiceImpl<S>
impl<S: GraphStorage> KnowledgeBaseService for KnowledgeBaseServiceImpl<S>
fn create_knowledge_base<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
name: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<KnowledgeBase>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_knowledge_base<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<KnowledgeBase>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_note<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_note<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_note<'life0, 'life1, 'async_trait>(
&'life0 self,
note: &'life1 Note,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_note<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_agent_notes<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn search_notes<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: AgentId,
query: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn add_tag<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
tag: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_tag<'life0, 'life1, 'async_trait>(
&'life0 self,
note_id: NoteId,
tag: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_notes_by_tag<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: AgentId,
tag: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn link_notes<'life0, 'async_trait>(
&'life0 self,
from_note_id: NoteId,
to_note_id: NoteId,
link_type: LinkType,
context: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unlink_notes<'life0, 'async_trait>(
&'life0 self,
from_note_id: NoteId,
to_note_id: NoteId,
link_type: LinkType,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_links_from<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
link_type: Option<LinkType>,
) -> Pin<Box<dyn Future<Output = Result<Vec<NoteLink>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_links_to<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
link_type: Option<LinkType>,
) -> Pin<Box<dyn Future<Output = Result<Vec<NoteLink>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_backlinks<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn find_path<'life0, 'async_trait>(
&'life0 self,
start_note_id: NoteId,
end_note_id: NoteId,
max_depth: usize,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<NoteId>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_note_graph<'life0, 'async_trait>(
&'life0 self,
note_id: NoteId,
depth: usize,
) -> Pin<Box<dyn Future<Output = Result<NoteGraph>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_note_with_luhmann_id<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
luhmann_id: LuhmannId,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_note_branch<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentId,
parent_note_id: NoteId,
title: impl 'async_trait + Into<String> + Send,
content: impl 'async_trait + Into<String> + Send,
) -> Pin<Box<dyn Future<Output = Result<Note>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_note_by_luhmann_id<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: AgentId,
luhmann_id: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Option<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_next_available_id<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: AgentId,
parent_id: Option<&'life1 LuhmannId>,
) -> Pin<Box<dyn Future<Output = Result<LuhmannId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_notes_by_luhmann_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
agent_id: AgentId,
prefix: &'life1 LuhmannId,
) -> Pin<Box<dyn Future<Output = Result<Vec<Note>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for KnowledgeBaseServiceImpl<S>where
S: Freeze,
impl<S> RefUnwindSafe for KnowledgeBaseServiceImpl<S>where
S: RefUnwindSafe,
impl<S> Send for KnowledgeBaseServiceImpl<S>
impl<S> Sync for KnowledgeBaseServiceImpl<S>
impl<S> Unpin for KnowledgeBaseServiceImpl<S>where
S: Unpin,
impl<S> UnsafeUnpin for KnowledgeBaseServiceImpl<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for KnowledgeBaseServiceImpl<S>where
S: UnwindSafe,
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