pub use phago_core as core;
pub use phago_runtime as runtime;
pub use phago_agents as agents;
pub use phago_rag as rag;
#[cfg(feature = "semantic")]
pub use phago_embeddings as embeddings;
#[cfg(feature = "llm")]
pub use phago_llm as llm;
#[cfg(feature = "distributed")]
pub use phago_distributed as distributed;
pub mod prelude {
pub use phago_core::types::{
AgentId, NodeId, DocumentId,
Position, Document,
Signal, SignalType, Gradient,
Trace, TraceType,
CellHealth, DeathSignal, DeathCause,
NodeData, NodeType, EdgeData,
AgentAction, FragmentPresentation,
DigestionResult,
SymbiosisEval, SymbiontInfo,
Classification,
BoundaryContext,
Orientation,
Tick,
};
pub use phago_core::agent::Agent;
pub use phago_core::substrate::Substrate;
pub use phago_core::topology::TopologyGraph;
pub use phago_core::error::{PhagoError, Result};
pub use phago_agents::digester::Digester;
pub use phago_agents::sentinel::Sentinel;
pub use phago_agents::synthesizer::Synthesizer;
pub use phago_agents::genome::AgentGenome;
pub use phago_agents::fitness::{AgentFitness, FitnessTracker};
pub use phago_runtime::colony::{Colony, ColonyEvent, ColonyStats};
pub use phago_runtime::session::{
save_session, load_session, restore_into_colony,
GraphState, SessionMetadata,
};
pub use phago_runtime::metrics::ColonyMetrics;
pub use phago_rag::{hybrid_query, HybridConfig, HybridResult};
pub use phago_rag::query::{Query, QueryResult};
pub use phago_rag::mcp::{
phago_remember, phago_recall, phago_explore,
RememberRequest, RememberResponse,
RecallRequest, RecallResponse,
ExploreRequest, ExploreResponse,
};
#[cfg(feature = "semantic")]
pub use phago_agents::semantic_digester::{SemanticDigester, SemanticConcept, SemanticConfig};
#[cfg(feature = "semantic")]
pub use phago_embeddings::{
Embedder, EmbeddingError, EmbeddingResult,
SimpleEmbedder, Chunker, ChunkConfig,
cosine_similarity, euclidean_distance, normalize_l2,
};
#[cfg(feature = "llm")]
pub use phago_llm::{
LlmBackend, LlmError, LlmResult,
Concept, Relationship, ConceptType, RelationType,
PromptTemplate,
};
#[cfg(feature = "llm-local")]
pub use phago_llm::OllamaBackend;
#[cfg(feature = "llm-api")]
pub use phago_llm::{ClaudeBackend, OpenAiBackend};
#[cfg(feature = "distributed")]
pub use phago_distributed::{
Coordinator, ShardedColony, ConsistentHashRing,
DistributedQueryEngine, DistributedHybridConfig,
DistributedRunner, RunnerConfig,
ShardId, DistributedConfig, DistributedError, DistributedResult,
TickPhase, CrossShardEdge, GhostNode, ShardInfo,
};
}
pub const VERSION: &str = env!("CARGO_PKG_VERSION");