bb_dsl/contracts/mod.rs
1//! User-facing Contract traits — canonical home is
2//! `bb-runtime::contracts`. This module re-exports the traits for
3//! authoring ergonomics so `bb_dsl::contracts::Index` etc. keep
4//! resolving.
5
6pub use bb_runtime::contracts::*;
7
8/// Re-export of the `bb::Aggregator` Contract trait for federated aggregators.
9pub mod aggregator {
10 pub use bb_runtime::contracts::aggregator::*;
11}
12/// Re-export of the `bb::Backend` Contract trait for tensor compute backends.
13pub mod backend {
14 pub use bb_runtime::contracts::backend::*;
15}
16/// Re-export of the shared default-walker bridges between `Backend`'s per-op methods and whole-graph `execute`.
17pub mod backend_default_walk {
18 pub use bb_runtime::contracts::backend_default_walk::*;
19}
20/// Re-export of the `bb::Bootstrap` Contract trait for Component initialization.
21pub mod bootstrap {
22 pub use bb_runtime::contracts::bootstrap::*;
23}
24/// Re-export of the `bb::Codec` Contract trait for bidirectional storage-type codecs.
25pub mod codec {
26 pub use bb_runtime::contracts::codec::*;
27}
28/// Re-export of the `bb::DataSource` Contract trait for data loaders.
29pub mod data_source {
30 pub use bb_runtime::contracts::data_source::*;
31}
32/// Re-export of the `bb::Index` Contract trait for vector indexes.
33pub mod index {
34 pub use bb_runtime::contracts::index::*;
35}
36/// Re-export of the `bb::Model` Contract trait for ML models.
37pub mod model {
38 pub use bb_runtime::contracts::model::*;
39}
40/// Re-export of the `bb::PeerSelector` Contract trait for peer-selection protocols.
41pub mod peer_selector {
42 pub use bb_runtime::contracts::peer_selector::*;
43}