Skip to main content

Crate agentzero_channels

Crate agentzero_channels 

Source
Expand description

Platform integrations for AgentZero.

Implements Telegram, Discord, and Slack channel adapters that bridge chat messages to the agent loop. Includes command parsing, reaction acknowledgement, and leak-guard middleware for sensitive data filtering.

Modules§

ack_reactions
commands
drafts
Draft lifecycle orchestration: send_draft → update_draft → finalize_draft.
group_reply
image_markers
interruption
Same-sender same-channel message interruption.
leak_guard
outbound
Outbound message processing — applies security filters before sending.
pipeline

Structs§

ChannelDelivery
ChannelDescriptor
ChannelInstanceConfig
Per-channel instance config from TOML [channels.<name>] sections. Uses a common structure with optional fields; each channel type consumes only the fields it needs.
ChannelMessage
A message received from a channel (inbound).
ChannelRegistry
CliChannel
SendMessage
A message to send through a channel (outbound).
WebhookChannel
Generic HTTP webhook channel. Messages are injected via inject_message() from the gateway webhook handler.

Constants§

CHANNEL_CATALOG

Traits§

Channel
Core channel trait — implement for any messaging platform.

Functions§

channel_catalog
is_local_channel
Check if a channel operates locally (no outbound network traffic).
normalize_channel_id
register_configured_channels
Register channels into registry based on the provided per-channel configs.