Skip to main content

cortexfs_channels/
lib.rs

1//! Runtime-neutral channel abstractions for multi-platform agent messaging.
2//!
3//! The public boundary deliberately models conversations, threads, receipts,
4//! capabilities, and health without importing FUSE, a model SDK, or an async
5//! runtime. A host can register any object-safe [`ChannelAdapter`] and route
6//! every inbound message into its own durable multi-turn session model.
7
8mod adapter;
9mod address;
10mod capability;
11mod error;
12mod message;
13pub mod platform;
14mod registry;
15mod route;
16mod wire;
17
18pub use adapter::{ChannelAdapter, ChannelFuture, ChannelStream, DeliveryReceipt};
19pub use address::{ChannelId, ConversationId};
20pub use capability::{ChannelCapabilities, ChannelHealth, HealthState};
21pub use error::{ChannelError, RetryHint};
22pub use message::{
23    Attachment, InboundMessage, MessageBody, MessageTarget, OutboundMessage, Participant,
24};
25pub use platform::{ChannelCodec, OutboundRequest};
26pub use registry::ChannelRegistry;
27pub use route::ChannelSessionRoute;
28pub use wire::{CHANNEL_ABI, ChannelEnvelope, ChannelEvent};
29
30#[cfg(test)]
31mod tests;