Skip to main content

Module contracts

Module contracts 

Source
Expand description

User-facing Contract traits — canonical home is bb-runtime::contracts. This module re-exports the traits for authoring ergonomics so bb_dsl::contracts::Index etc. keep resolving.

Modules§

aggregator
Re-export of the bb::Aggregator Contract trait for federated aggregators.
backend
Re-export of the bb::Backend Contract trait for tensor compute backends.
backend_default_walk
Re-export of the shared default-walker bridges between Backend’s per-op methods and whole-graph execute.
codec
Re-export of the bb::Codec Contract trait for bidirectional storage-type codecs.
data_source
Re-export of the bb::DataSource Contract trait for data loaders.
index
Re-export of the bb::Index Contract trait for vector indexes.
model
Re-export of the bb::Model Contract trait for ML models.
peer_selector
Re-export of the bb::PeerSelector Contract trait for peer-selection protocols.

Enums§

SelectParams
Parameters describing what peer set to select. Different concrete selectors handle the variants they support and return an error variant for the ones they don’t (e.g. GlobalRegistry supports Random + All; DhtView supports NearKey).

Traits§

Aggregator
User-facing Contract trait for a federated/decentralized aggregator. The derive bridges these methods to the engine’s crate::roles::AggregatorRuntime trait.
Backend
User-facing Contract trait for a tensor compute backend.
Codec
User-facing Contract trait for a typed in/out storage codec.
DataSource
User-facing Contract trait for a data source / data loader.
Index
User-facing Contract trait for a vector index.
Model
User-facing Contract trait for an ML model.
PeerSelector
User-facing Contract trait for a peer-selection protocol.