70 lines
3.2 KiB
Rust
70 lines
3.2 KiB
Rust
//! # RustyTorch++ Autonomous Evolution Framework
|
|
//!
|
|
//! This crate implements an agent-driven continuous improvement system for RustyTorch++.
|
|
//! The evolution framework analyzes telemetry data, generates optimization proposals,
|
|
//! validates them in safe sandboxes, and applies successful improvements automatically.
|
|
//!
|
|
//! ## Core Components
|
|
//!
|
|
//! - **Evolution Orchestrator**: Main evolution loop coordinating all components
|
|
//! - **Telemetry Analysis**: Pattern mining, anomaly detection, and opportunity identification
|
|
//! - **Multi-Objective Optimization**: Pareto frontier calculation and trade-off analysis
|
|
//! - **Safe Sandbox**: Isolated execution environment with automatic rollback
|
|
//! - **Knowledge Graph**: Meta-learning storage with pattern relationships
|
|
//!
|
|
//! ## Architecture
|
|
//!
|
|
//! ```text
|
|
//! ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
|
|
//! │ Telemetry │───▶│ Orchestrator │───▶│ Validation │
|
|
//! │ Analysis │ │ │ │ Sandbox │
|
|
//! └─────────────────┘ └──────────────────┘ └─────────────────┘
|
|
//! │ │ │
|
|
//! ▼ ▼ ▼
|
|
//! ┌─────────────────┐ ┌──────────────────┐ ┌─────────────────┐
|
|
//! │ Multi-Objective│ │ Knowledge │ │ Production │
|
|
//! │ Optimization │ │ Graph │ │ Deployment │
|
|
//! └─────────────────┘ └──────────────────┘ └─────────────────┘
|
|
//! ```
|
|
//!
|
|
//! ## Example Usage
|
|
//!
|
|
//! ```rust
|
|
//! use rtx_evolution::{EvolutionOrchestrator, EvolutionConfig};
|
|
//!
|
|
//! # async fn example() -> rtx_evolution::Result<()> {
|
|
//! let config = EvolutionConfig::default();
|
|
//! let orchestrator = EvolutionOrchestrator::new(config);
|
|
//!
|
|
//! // Start the evolution loop
|
|
//! orchestrator.run().await?;
|
|
//! # Ok(())
|
|
//! # }
|
|
//! ```
|
|
|
|
pub mod autonomous_optimizer;
|
|
pub mod error;
|
|
pub mod hyperparameter_tuner;
|
|
pub mod knowledge;
|
|
pub mod optimization;
|
|
pub mod orchestrator;
|
|
pub mod sandbox;
|
|
pub mod telemetry;
|
|
|
|
// Re-export main types
|
|
pub use autonomous_optimizer::{
|
|
AutonomousOptimizer, GpuMetric, GpuMetricType, OptimizationOpportunity,
|
|
};
|
|
pub use error::{EvolutionError, Result};
|
|
pub use hyperparameter_tuner::{
|
|
HyperparameterTuner, ObjectiveFunction, Rtx5090Metrics, SearchSpace,
|
|
};
|
|
pub use knowledge::{KnowledgeGraph, Pattern, Relationship};
|
|
pub use optimization::{MultiObjectiveOptimizer, Objective, ParetoFrontier};
|
|
pub use orchestrator::{
|
|
Change, EvolutionConfig, EvolutionOrchestrator, EvolutionStatistics, ExecutionResult,
|
|
IsolationLevel, ProposalSpec, RiskLevel, RollbackResult,
|
|
};
|
|
pub use sandbox::{SafeSandbox, SandboxConfig};
|
|
pub use telemetry::{Anomaly, PerformancePattern, TelemetryAnalyzer};
|