Index
channels
¶
Channel abstraction for multi-platform messaging.
Classes¶
BaseChannel
¶
Bases: ABC
Base class for all channel implementations.
Subclasses must be registered via
@ChannelRegistry.register("name") to become discoverable.
Functions¶
connect
abstractmethod
¶
disconnect
abstractmethod
¶
send
abstractmethod
¶
send(channel: str, content: str, *, conversation_id: str = '', metadata: Dict[str, Any] | None = None) -> bool
Send a message to a specific channel. Returns True on success.
status
abstractmethod
¶
status() -> ChannelStatus
list_channels
abstractmethod
¶
ChannelMessage
dataclass
¶
ChannelMessage(channel: str, sender: str, content: str, message_id: str = '', conversation_id: str = '', session_id: str = '', metadata: Dict[str, Any] = dict())
A message received from or sent to a channel.
ChannelStatus
¶
Bases: str, Enum
Channel connection status.