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