Skip to main content

Crate cortexfs_channels

Crate cortexfs_channels 

Source
Expand description

Runtime-neutral channel abstractions for multi-platform agent messaging.

The public boundary deliberately models conversations, threads, receipts, capabilities, and health without importing FUSE, a model SDK, or an async runtime. A host can register any object-safe ChannelAdapter and route every inbound message into its own durable multi-turn session model.

Re-exports§

pub use platform::ChannelCodec;
pub use platform::OutboundRequest;

Modules§

platform

Structs§

Attachment
A remote attachment represented by a retrievable URL.
ChannelCapabilities
Features that an adapter can expose without platform-specific branching.
ChannelEnvelope
One framed event crossing a channel host boundary.
ChannelHealth
Health result that can be surfaced without leaking credentials.
ChannelId
Canonical adapter identifier, such as telegram or slack.
ChannelRegistry
Thread-safe collection of named channel adapters.
ChannelSessionRoute
Deterministic mapping from a remote conversation to an agent session name.
ConversationId
Platform-owned conversation identifier. It may contain opaque provider IDs.
DeliveryReceipt
Provider-neutral acknowledgement for one outbound delivery.
InboundMessage
A message delivered by a channel adapter.
MessageBody
Text plus optional platform-neutral attachment references.
MessageTarget
Stable destination identity used by both inbound and outbound messages.
OutboundMessage
A message sent through a channel adapter.
Participant
Sender identity supplied by the platform adapter.
RetryHint
Optional retry advice attached to a rate-limit failure.

Enums§

ChannelError
Stable failures returned by channel adapters and the registry.
ChannelEvent
Event kinds intentionally remain small; platform details stay in metadata.
HealthState
Liveness of one adapter, separate from capability discovery.

Constants§

CHANNEL_ABI
Versioned JSON ABI shared by channel hosts and agent software.

Traits§

ChannelAdapter
Object-safe contract implemented by Telegram, Slack, Discord, or custom adapters.

Type Aliases§

ChannelFuture
Runtime-neutral future used by object-safe channel adapters.
ChannelStream
Owned asynchronous inbound stream returned by an adapter.