pub struct IntegrationBridge { /* private fields */ }Expand description
Integration bridge that connects available capabilities
Implementations§
Source§impl IntegrationBridge
impl IntegrationBridge
Sourcepub fn registry(&self) -> Arc<RwLock<CapabilityRegistry>>
pub fn registry(&self) -> Arc<RwLock<CapabilityRegistry>>
Get the capability registry
Sourcepub async fn register_ml_provider(&self, provider: Arc<dyn MLCapable>)
pub async fn register_ml_provider(&self, provider: Arc<dyn MLCapable>)
Register an ML-capable provider
Sourcepub async fn register_workflow_provider(
&self,
provider: Arc<dyn WorkflowCapable>,
)
pub async fn register_workflow_provider( &self, provider: Arc<dyn WorkflowCapable>, )
Register a workflow-capable provider
Sourcepub async fn register_hardware_provider(
&self,
provider: Arc<dyn HardwareCapable>,
)
pub async fn register_hardware_provider( &self, provider: Arc<dyn HardwareCapable>, )
Register a hardware-capable provider
Sourcepub async fn register_explainability_provider(
&self,
provider: Arc<dyn ExplainabilityCapable>,
)
pub async fn register_explainability_provider( &self, provider: Arc<dyn ExplainabilityCapable>, )
Register an explainability provider
Sourcepub async fn register_adaptive_provider(
&self,
provider: Arc<dyn AdaptiveCapable>,
)
pub async fn register_adaptive_provider( &self, provider: Arc<dyn AdaptiveCapable>, )
Register an adaptive learning provider
Sourcepub async fn try_infer(&self, model_name: &str, input: Value) -> Option<Value>
pub async fn try_infer(&self, model_name: &str, input: Value) -> Option<Value>
Run inference if ML capability is available
Sourcepub async fn try_run_workflow(
&self,
config: WorkflowConfig,
) -> Option<WorkflowResult>
pub async fn try_run_workflow( &self, config: WorkflowConfig, ) -> Option<WorkflowResult>
Create and execute a workflow if capability is available
Sourcepub async fn try_get_hardware_recommendations(
&self,
) -> Vec<OptimizationRecommendation>
pub async fn try_get_hardware_recommendations( &self, ) -> Vec<OptimizationRecommendation>
Get hardware optimization if capability is available
Sourcepub async fn try_record_audit(&self, context: AuditContext) -> Option<String>
pub async fn try_record_audit(&self, context: AuditContext) -> Option<String>
Record for audit if explainability is available
Sourcepub async fn try_add_training_example(&self, example: TrainingExample) -> bool
pub async fn try_add_training_example(&self, example: TrainingExample) -> bool
Add training example if adaptive learning is available
Sourcepub async fn integration_summary(&self) -> IntegrationSummary
pub async fn integration_summary(&self) -> IntegrationSummary
Get a summary of available integrations
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntegrationBridge
impl !RefUnwindSafe for IntegrationBridge
impl Send for IntegrationBridge
impl Sync for IntegrationBridge
impl Unpin for IntegrationBridge
impl !UnwindSafe for IntegrationBridge
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