Skip to main content

Module channels

Module channels 

Source

Modules§

acp_server
ACP (Agent Control Protocol) Server — JSON-RPC 2.0 over stdio.
link_enricher
Link enricher: auto-detects URLs in inbound messages, fetches their content, and prepends summaries so the agent has link context without explicit tool calls.
media_pipeline
Automatic media understanding pipeline for inbound channel messages.
session_backend
session_sqlite
telegram
transcription

Structs§

ChannelMessage
A message received from or sent to a channel
CliChannel
CLI channel — stdin/stdout, always available, zero deps
EmailChannel
Email channel — IMAP IDLE for instant push notifications, SMTP for outbound.
GmailPushChannel
Gmail Pub/Sub push notification channel.
MessageDebouncer
Accumulates rapid inbound messages per sender and fires a single combined message after the debounce window elapses without new input.
SendMessage
Message to send through a channel
SqliteSessionBackend
SQLite-backed session store with FTS5 and WAL mode.
StallWatchdog
A reusable watchdog that detects stalled (idle) WebSocket transports.
TelegramChannel
Telegram channel — long-polls the Bot API for updates
TtsManager
Central manager for per-agent TTS synthesis.
WebhookChannel
Generic Webhook channel — receives messages via HTTP POST and sends replies to a configurable outbound URL. This is the “universal adapter” for any system that supports webhooks.

Constants§

BOOTSTRAP_MAX_CHARS
Maximum characters per injected workspace file (matches OpenClaw default).

Traits§

Channel
Core channel trait — implement for any messaging platform.
SessionBackend
Trait for session persistence backends.
TtsProvider
Trait for pluggable TTS backends.

Functions§

bind_telegram_identity
build_channel_map
Build channel_key → Arc<dyn Channel> map from config.
build_system_prompt
Load workspace identity files and build a system prompt.
build_system_prompt_with_mode
build_system_prompt_with_mode_and_autonomy
conversation_history_key
deliver_announcement
Deliver a cron job announcement to a configured channel. Scans for credential leaks before delivery.
doctor_channels
Run health checks for configured channels.
handle_command
register_channels_for_tools
Build configured channels and register them into late-bound tool handles.
send_channel_message
Send a one-off message to a configured channel.
start_channels
Start all configured channels and route messages to the agent