pub struct DistributedCapabilityRegistry { /* private fields */ }Implementations§
Source§impl DistributedCapabilityRegistry
impl DistributedCapabilityRegistry
pub fn new() -> Self
pub fn empty() -> Self
pub fn register_toolset( &self, reference: ToolsetRef, registry: ToolRegistry, ) -> Result<(), DistributedCapabilityError>
pub fn register_llm_client( &self, reference: CapabilityRef, client: Arc<dyn LlmClient>, )
pub fn register_workspace_backend( &self, reference: CapabilityRef, backend: Arc<dyn WorkspaceBackend>, )
pub fn register_approval_provider( &self, reference: CapabilityRef, provider: Arc<dyn ApprovalProvider>, )
pub fn register_approval_broker( &self, reference: CapabilityRef, broker: ApprovalBroker, )
pub fn register_cancellation( &self, reference: CapabilityRef, token: CancellationToken, )
pub fn register_event_sink( &self, reference: CapabilityRef, sink: RuntimeEventHandler, )
pub fn register_host_cost_meter( &self, reference: CapabilityRef, meter: Arc<dyn HostCostMeter>, )
pub fn register_app_state( &self, reference: CapabilityRef, state: Arc<dyn Any + Send + Sync>, )
pub fn register_memory_provider( &self, reference: CapabilityRef, provider: Arc<dyn MemoryProvider>, )
pub fn register_hook( &self, reference: CapabilityRef, hook: Arc<dyn RuntimeHook>, )
pub fn register_observer( &self, reference: CapabilityRef, observer: RuntimeEventHandler, )
pub fn register_sub_task_manager( &self, reference: CapabilityRef, manager: SubTaskManager, )
pub fn register_tool_predicate( &self, reference: CapabilityRef, predicate: CanUseToolPredicate, )
pub fn register_checkpoint_store( &self, reference: CapabilityRef, store: Arc<dyn CheckpointStoreV2>, )
pub fn register_checkpoint_event_store( &self, reference: CapabilityRef, store: Arc<dyn IdempotentRunEventStore>, )
pub fn register_checkpoint_extension( &self, reference: CapabilityRef, extension: Arc<dyn CheckpointExtension>, )
pub fn register_reconciliation_provider( &self, reference: CapabilityRef, provider: Arc<dyn ReconciliationProvider>, )
pub fn resolve( &self, capabilities: &DistributedCapabilities, ) -> Result<ResolvedDistributedCapabilities, DistributedCapabilityError>
Trait Implementations§
Source§impl Clone for DistributedCapabilityRegistry
impl Clone for DistributedCapabilityRegistry
Source§fn clone(&self) -> DistributedCapabilityRegistry
fn clone(&self) -> DistributedCapabilityRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistributedCapabilityRegistry
impl RefUnwindSafe for DistributedCapabilityRegistry
impl Send for DistributedCapabilityRegistry
impl Sync for DistributedCapabilityRegistry
impl Unpin for DistributedCapabilityRegistry
impl UnsafeUnpin for DistributedCapabilityRegistry
impl UnwindSafe for DistributedCapabilityRegistry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreCreates a shared type from an unshared type.