1#![warn(missing_docs)]
47
48pub mod engine;
49pub mod ewc;
50pub mod loops;
51pub mod lora;
52pub mod reasoning_bank;
53pub mod time_compat;
54pub mod trajectory;
55pub mod types;
56
57#[cfg(feature = "serde-support")]
58pub mod export;
59
60#[cfg(feature = "serde-support")]
61pub mod training;
62
63#[cfg(feature = "wasm")]
64pub mod wasm;
65
66#[cfg(feature = "napi")]
67pub mod napi_simple;
68
69pub use engine::SonaEngine;
71pub use ewc::{EwcConfig, EwcPlusPlus, TaskFisher};
72pub use loops::{BackgroundLoop, InstantLoop, LoopCoordinator};
73pub use lora::{BaseLoRA, LoRAEngine, LoRALayer, MicroLoRA};
74pub use reasoning_bank::{PatternConfig, ReasoningBank};
75pub use trajectory::{TrajectoryBuffer, TrajectoryBuilder, TrajectoryIdGen};
76pub use types::{
77 LearnedPattern, LearningSignal, PatternType, QueryTrajectory, SignalMetadata, SonaConfig,
78 TrajectoryStep,
79};
80
81#[cfg(feature = "serde-support")]
82pub use export::{
83 DatasetExporter, ExportConfig, ExportError, ExportResult, ExportType, HuggingFaceExporter,
84 HuggingFaceHub, PretrainConfig, PretrainPipeline, SafeTensorsExporter,
85};
86
87#[cfg(feature = "serde-support")]
88pub use training::{
89 AgentExport, AgentFactory, AgentHandle, AgentStats, AgentType, AggregationResult, BatchConfig,
90 CoordinatorStats, DataSizeHint, EphemeralAgent, EpochStats, FederatedCoordinator,
91 FederatedTopology, ManagedAgent, PipelineStage, TaskDomain, TemplatePreset, TrainingMethod,
92 TrainingMetrics, TrainingPipeline, TrainingResult, TrainingTemplate, VerticalConfig,
93};
94
95#[cfg(feature = "wasm")]
96pub use wasm::WasmSonaEngine;