Skip to main content

phago_runtime/
lib.rs

1//! # Phago Runtime
2//!
3//! Colony management, scheduling, and host runtime.
4//!
5//! The runtime is the "organism" — it manages the lifecycle of agents
6//! (cells), runs the tick-based simulation, and maintains the substrate
7//! (shared environment).
8//!
9//! ## Quick Start
10//!
11//! ```rust
12//! use phago_runtime::prelude::*;
13//!
14//! // Create a colony
15//! let mut colony = Colony::new();
16//!
17//! // Ingest a document
18//! colony.ingest_document("title", "content", Position::new(0.0, 0.0));
19//!
20//! // Spawn a digester
21//! colony.spawn(Box::new(Digester::new(Position::new(0.0, 0.0))));
22//!
23//! // Run the simulation
24//! colony.run(50);
25//! ```
26
27pub mod substrate_impl;
28pub mod topology_impl;
29pub mod colony;
30pub mod metrics;
31pub mod corpus;
32pub mod bench;
33pub mod export;
34pub mod community;
35pub mod curriculum;
36pub mod training_format;
37pub mod session;
38pub mod project_context;
39pub mod prelude;