wactorz_core/lib.rs
1//! # wactorz-core
2//!
3//! Core actor model primitives for AgentFlow.
4//!
5//! This crate provides the fundamental building blocks:
6//! - [`Actor`] — the base trait every agent must implement
7//! - [`Message`] / [`MessageType`] — typed inter-actor communication
8//! - [`ActorState`] — lifecycle state machine
9//! - [`ActorMetrics`] — runtime telemetry
10//! - [`ActorRegistry`] / [`ActorSystem`] — actor lookup and orchestration
11
12pub mod actor;
13pub mod message;
14pub mod metrics;
15pub mod publish;
16pub mod registry;
17
18pub use actor::{Actor, ActorConfig, ActorState};
19pub use message::{Message, MessageType};
20pub use metrics::{ActorMetrics, MetricsSnapshot};
21pub use publish::EventPublisher;
22pub use registry::{
23 ActorEntry, ActorFactory, ActorRegistry, ActorSystem, Supervisor, SupervisorStrategy,
24};