pub struct SystemIndexManager { /* private fields */ }Expand description
Manager for the system index
Implementations§
Source§impl SystemIndexManager
impl SystemIndexManager
Sourcepub async fn read_index(&self) -> Result<(), AgentError>
pub async fn read_index(&self) -> Result<(), AgentError>
Get the current index (returns a reference to avoid cloning atomic types)
Sourcepub async fn get_agent_ids(&self) -> Result<Vec<String>, AgentError>
pub async fn get_agent_ids(&self) -> Result<Vec<String>, AgentError>
Get agent IDs from the index
Sourcepub async fn increment_version(&self) -> Result<(), AgentError>
pub async fn increment_version(&self) -> Result<(), AgentError>
Update the index version
Sourcepub async fn register_agent(&self, agent_id: String) -> Result<(), AgentError>
pub async fn register_agent(&self, agent_id: String) -> Result<(), AgentError>
Register an agent in the index
Sourcepub async fn register_component(
&self,
component_id: String,
path: String,
) -> Result<(), AgentError>
pub async fn register_component( &self, component_id: String, path: String, ) -> Result<(), AgentError>
Register a component in the index
Sourcepub async fn register_model(
&self,
model_id: String,
path: String,
) -> Result<(), AgentError>
pub async fn register_model( &self, model_id: String, path: String, ) -> Result<(), AgentError>
Register a model in the index
Sourcepub async fn crawl_and_update(&self) -> Result<(), AgentError>
pub async fn crawl_and_update(&self) -> Result<(), AgentError>
Parallel directory crawler using rayon
pub fn enhanced_crawl(&self) -> Result<(), AgentError>
pub async fn bitcoin_health_check(&self) -> Result<f32, AgentError>
Check if a path is related to Bitcoin functionality
Trait Implementations§
Source§impl Default for SystemIndexManager
impl Default for SystemIndexManager
Source§impl IndexProvider for SystemIndexManager
impl IndexProvider for SystemIndexManager
Source§fn global() -> Arc<SystemIndexManager>
fn global() -> Arc<SystemIndexManager>
Get the global system index
Source§fn read_index<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn read_index<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Read the current index
Source§fn increment_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn increment_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update the index
Auto Trait Implementations§
impl !Freeze for SystemIndexManager
impl RefUnwindSafe for SystemIndexManager
impl Send for SystemIndexManager
impl Sync for SystemIndexManager
impl Unpin for SystemIndexManager
impl UnwindSafe for SystemIndexManager
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