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::AggregatorContract trait for federated aggregators. - backend
- Re-export of the
bb::BackendContract trait for tensor compute backends. - backend_
default_ walk - Re-export of the shared default-walker bridges between
Backend’s per-op methods and whole-graphexecute. - codec
- Re-export of the
bb::CodecContract trait for bidirectional storage-type codecs. - data_
source - Re-export of the
bb::DataSourceContract trait for data loaders. - index
- Re-export of the
bb::IndexContract trait for vector indexes. - model
- Re-export of the
bb::ModelContract trait for ML models. - peer_
selector - Re-export of the
bb::PeerSelectorContract trait for peer-selection protocols.
Enums§
- Select
Params - 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.
GlobalRegistrysupportsRandom+All;DhtViewsupportsNearKey).
Traits§
- Aggregator
- User-facing Contract trait for a federated/decentralized
aggregator. The derive bridges these methods to the engine’s
crate::roles::AggregatorRuntimetrait. - Backend
- User-facing Contract trait for a tensor compute backend.
- Codec
- User-facing Contract trait for a typed in/out storage codec.
- Data
Source - 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.
- Peer
Selector - User-facing Contract trait for a peer-selection protocol.