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§
- Channel
Message - A message received from or sent to a channel
- CliChannel
- CLI channel — stdin/stdout, always available, zero deps
- Email
Channel - Email channel — IMAP IDLE for instant push notifications, SMTP for outbound.
- Gmail
Push Channel - Gmail Pub/Sub push notification channel.
- Message
Debouncer - Accumulates rapid inbound messages per sender and fires a single combined message after the debounce window elapses without new input.
- Send
Message - Message to send through a channel
- Sqlite
Session Backend - SQLite-backed session store with FTS5 and WAL mode.
- Stall
Watchdog - A reusable watchdog that detects stalled (idle) WebSocket transports.
- Telegram
Channel - Telegram channel — long-polls the Bot API for updates
- TtsManager
- Central manager for per-agent TTS synthesis.
- Webhook
Channel - 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
OpenClawdefault).
Traits§
- Channel
- Core channel trait — implement for any messaging platform.
- Session
Backend - 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