Expand description
User-facing Contract traits (Index, Backend, Aggregator, …).
User-facing Contract traits — what a library maker implements
when shipping a concrete component. The derives in bb-derive
bridge these into the per-component dispatch_fn the engine
holds.
Canonical home for bb-runtime. bb-dsl::contracts re-exports
from here so the authoring path bb_dsl::Index keeps working.
Re-exports§
pub use aggregator::Aggregator;pub use backend::Backend;pub use bootstrap::Bootstrap;pub use bootstrap::BootstrapCtx;pub use codec::Codec;pub use data_source::DataSource;pub use index::Index;pub use model::Model;pub use peer_selector::PeerSelector;pub use peer_selector::SelectParams;
Modules§
- aggregator
bb::Aggregator— Contract trait for federated aggregators.- backend
bb::Backend— Contract trait for tensor compute backends.- backend_
default_ walk - Shared default impls for the
BackendContract trait. - bootstrap
bb::Bootstrap— optional Component initialization phase.- codec
bb::Codec— bidirectional storage-type bridge.- data_
source bb::DataSource— Contract trait for data loaders.- index
bb::Index— Contract trait for vector indexes.- model
bb::Model— Contract trait for ML models.- peer_
selector bb::PeerSelector— Contract trait for peer-selection protocols.