1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
//! SONA Training System
//!
//! Templated training pipelines for specialized model adaptation.
//!
//! ## Overview
//!
//! The training module provides:
//! - **Training Templates**: Pre-configured training setups for common use cases
//! - **Agent Factory**: Create and manage multiple specialized agents
//! - **Training Pipelines**: Structured workflows for different verticals
//! - **Federated Learning**: Distributed training across ephemeral agents
//! - **Metrics & Results**: Comprehensive training analytics
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use ruvector_sona::training::{TrainingTemplate, AgentFactory, TrainingPipeline};
//!
//! // Use a preset template
//! let template = TrainingTemplate::code_agent();
//! let pipeline = TrainingPipeline::from_template(template);
//!
//! // Train on examples
//! for example in examples {
//! pipeline.add_example(example);
//! }
//! let results = pipeline.train()?;
//! ```
//!
//! ## Federated Learning
//!
//! ```rust,ignore
//! use ruvector_sona::training::{EphemeralAgent, FederatedCoordinator};
//!
//! // Create coordinator
//! let mut coordinator = FederatedCoordinator::default_coordinator("main", 3072);
//!
//! // Ephemeral agents process tasks
//! let mut agent = EphemeralAgent::default_federated("agent-1", 3072);
//! agent.process_trajectory(embedding, activations, quality, route, context);
//!
//! // Export state before termination
//! let export = agent.export_state();
//! coordinator.aggregate(export);
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;