| Crates.io | omega-core |
| lib.rs | omega-core |
| version | 1.1.0 |
| created_at | 2025-12-05 17:59:04.701063+00 |
| updated_at | 2025-12-12 07:05:46.297831+00 |
| description | Core types and traits for ExoGenesis Omega universal intelligence orchestration system |
| homepage | https://github.com/prancer-io/ExoGenesis-Omega |
| repository | https://github.com/prancer-io/ExoGenesis-Omega |
| max_upload_size | |
| id | 1968861 |
| size | 60,552 |
Core types and traits for the ExoGenesis Omega universal intelligence orchestration system.
Part of the ExoGenesis-Omega cognitive architecture.
omega-core provides the foundational abstractions for orchestrating intelligence at any scale—from millisecond reflexes to cosmic timescales spanning billions of years. This crate defines the core types, traits, and interfaces used by all other Omega components.
ExoGenesis Omega enables intelligence systems to operate across 12 hierarchical memory tiers and 7 nested temporal loops, supporting any intelligence paradigm (neural, symbolic, quantum, biological, etc.) running on any substrate (digital, biological, social, cosmic).
Add this to your Cargo.toml:
[dependencies]
omega-core = "0.1.0"
use omega_core::*;
use chrono::Utc;
fn main() {
// Define an intelligence architecture
let architecture = Architecture {
id: "arch-001".to_string(),
name: "Neural Transformer".to_string(),
paradigm: Paradigm::Neural,
substrate: SubstrateType::Digital,
fitness: None,
lineage: vec![],
created_at: Utc::now(),
};
// Create an intelligence instance
let mut intelligence = Intelligence::new(
"GPT-Omega".to_string(),
architecture,
);
// Activate the intelligence
intelligence.activate();
println!("Intelligence {} is now {:?}",
intelligence.name, intelligence.status);
// Create a memory
let memory = Memory::new(
MemoryTier::Semantic,
MemoryType::Knowledge,
MemoryContent::Text("The universe is 13.8 billion years old".to_string()),
0.95, // high importance
);
// Create a temporal loop
let mut adaptive_loop = TemporalLoop::new(
LoopType::Adaptive,
"Learning Loop".to_string(),
"Continuous learning from experience".to_string(),
);
}
The Intelligence type represents any form of intelligent agent with:
The memory system provides 12 hierarchical tiers:
Seven nested feedback loops enable multi-scale learning:
The Architecture type defines the cognitive design:
use omega_core::*;
// Create multiple specialized intelligences
let researcher = Intelligence::new(
"Research Agent".to_string(),
Architecture {
paradigm: Paradigm::Neural,
substrate: SubstrateType::Digital,
// ... other fields
},
);
let executor = Intelligence::new(
"Execution Agent".to_string(),
Architecture {
paradigm: Paradigm::Symbolic,
substrate: SubstrateType::Digital,
// ... other fields
},
);
use omega_core::*;
// Store different types of memories
let sensory = Memory::new(
MemoryTier::Immediate,
MemoryType::Sensory,
MemoryContent::Sensory(vec![1, 2, 3, 4]),
0.3,
);
let knowledge = Memory::new(
MemoryTier::Semantic,
MemoryType::Knowledge,
MemoryContent::Text("E = mc²".to_string()),
0.99,
);
// Check if memories have expired
println!("Sensory expired: {}", sensory.is_expired());
println!("Knowledge expired: {}", knowledge.is_expired());
use omega_core::*;
use std::collections::HashMap;
let mut loop_instance = TemporalLoop::new(
LoopType::Deliberative,
"Planning Loop".to_string(),
"Daily strategic planning".to_string(),
);
// Start a cycle
let input = CycleInput {
data: HashMap::new(),
context: "morning_planning".to_string(),
objectives: vec!["optimize_workflow".to_string()],
};
let cycle_id = loop_instance.start_cycle(input);
println!("Started cycle: {}", cycle_id);
use omega_core::*;
use chrono::Utc;
fn main() {
// 1. Define architecture
let mut arch = Architecture {
id: uuid::Uuid::new_v4().to_string(),
name: "Hybrid Cognitive System".to_string(),
paradigm: Paradigm::Hybrid,
substrate: SubstrateType::Digital,
fitness: Some(FitnessScore {
overall: 0.85,
capability: 0.90,
efficiency: 0.75,
alignment: 0.88,
novelty: 0.87,
}),
lineage: vec![],
created_at: Utc::now(),
};
// 2. Create intelligence
let mut intel = Intelligence::new("Omega-1".to_string(), arch);
// 3. Add capabilities
intel.capabilities.push("reasoning".to_string());
intel.capabilities.push("learning".to_string());
intel.capabilities.push("planning".to_string());
// 4. Activate
intel.activate();
// 5. Update maturity
intel.maturity = 0.75;
println!("Intelligence {} operational with {} capabilities",
intel.name, intel.capabilities.len());
}
use omega_core::*;
fn create_memory_hierarchy() -> Vec<Memory> {
let mut memories = Vec::new();
// Immediate sensory memory
memories.push(Memory::new(
MemoryTier::Immediate,
MemoryType::Sensory,
MemoryContent::Sensory(vec![0; 1024]),
0.2,
));
// Episodic event memory
memories.push(Memory::new(
MemoryTier::Episodic,
MemoryType::Event,
MemoryContent::Text("User requested feature X".to_string()),
0.7,
));
// Semantic knowledge
memories.push(Memory::new(
MemoryTier::Semantic,
MemoryType::Knowledge,
MemoryContent::Structured(serde_json::json!({
"concept": "machine learning",
"definition": "algorithms that improve through experience"
})),
0.9,
));
memories
}
omega-core sits at the foundation of the ExoGenesis Omega ecosystem:
┌─────────────────────────────────────────┐
│ omega-runtime │ ← Production orchestration
├─────────────────────────────────────────┤
│ omega-memory │ omega-loops │ meta- │ ← High-level subsystems
│ │ │ sona │
├────────────────┼───────────────┼────────┤
│ omega-agentdb │ omega-persistence │ ← Storage layer
├─────────────────────────────────────────┤
│ omega-core │ ← Core types & traits
└─────────────────────────────────────────┘
All other Omega crates depend on omega-core for shared types and interfaces.
Licensed under the MIT License. See LICENSE for details.