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
71
72
73
74
75
76
77
78
79
80
81
// Copyright 2019-2026 Apilium Technologies OÜ. All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR Commercial
//! # AIngle AI Integration Layer
//!
//! This crate provides AI capabilities for AIngle nodes, implementing:
//!
//! - **Ineru**: Dual memory system (short-term + long-term) for pattern learning
//! - **Nested Learning**: Multi-level optimization for consensus and validation
//! - **Kaneru**: Self-modifying nodes with continual learning
//! - **Emergent Capabilities**: Predictive validation, adaptive consensus
//!
//! ## Architecture
//!
//! ```text
//! ┌─────────────────────────────────────────────────────────────┐
//! │ NESTED LEARNING LAYER │
//! │ (Meta-optimization of network) │
//! └─────────────────────────────────────────────────────────────┘
//! │
//! ▼
//! ┌─────────────────────────────────────────────────────────────┐
//! │ INERU MEMORY LAYER │
//! │ (Dual memory per node) │
//! │ ┌──────────────────┐ ┌──────────────────┐ │
//! │ │ SHORT-TERM │◄──►│ LONG-TERM │ │
//! │ │ (Recent txs) │ │ (Historical) │ │
//! │ └──────────────────┘ └──────────────────┘ │
//! └─────────────────────────────────────────────────────────────┘
//! │
//! ▼
//! ┌─────────────────────────────────────────────────────────────┐
//! │ KANERU AGENT LAYER │
//! │ (Self-modifying nodes) │
//! └─────────────────────────────────────────────────────────────┘
//! ```
//!
//! ## Features
//!
//! - `default`: Basic functionality with lightweight implementations
//! - `full-ml`: Enable full ML capabilities with candle
//! - `iot`: Optimized for IoT devices with minimal memory footprint
//!
//! ## Example
//!
//! ```rust,no_run
//! use aingle_ai::ineru::{IneruMemory, IneruConfig};
//!
//! // Create Ineru memory system
//! let config = IneruConfig::default();
//! let mut memory = IneruMemory::new(config);
//!
//! // Process transactions
//! // let result = memory.process(&transaction);
//! ```
pub use AiConfig;
pub use ;
pub use *;
/// Prelude module for convenient imports