Skip to main content

Crate brainwires_channels

Crate brainwires_channels 

Source
Expand description

§Brainwires Channels

Universal messaging channel contract for the Brainwires Agent Framework.

This crate defines the traits and types that every messaging channel adapter (Discord, Telegram, Slack, etc.) must implement. It is used by the gateway daemon and all channel adapters to ensure a consistent interface.

Re-exports§

pub use capabilities::ChannelCapabilities;
pub use events::ChannelEvent;
pub use events::PresenceStatus;
pub use handshake::ChannelHandshake;
pub use handshake::ChannelHandshakeResponse;
pub use identity::ChannelSession;
pub use identity::ChannelUser;
pub use identity::ConversationId;
pub use message::Attachment;
pub use message::ChannelMessage;
pub use message::EmbedField;
pub use message::EmbedPayload;
pub use message::MediaPayload;
pub use message::MediaType;
pub use message::MessageContent;
pub use message::MessageId;
pub use message::ThreadId;
pub use traits::Channel;

Modules§

capabilities
Channel capability flags. Channel capability flags.
events
Channel events (message received, edited, deleted, reactions, etc.). Channel events representing things that happen on a messaging platform.
handshake
Gateway handshake protocol types. Gateway handshake protocol types.
identity
User and session identity types. User and session identity types for channel communication.
message
Core message types for channel communication. Core message types for channel communication.
traits
The Channel trait that all adapters must implement. The Channel trait that all messaging channel adapters must implement.