Expand description
Channel router — connects platform channels and routes messages to agents.
Owns the lifecycle of all channel connections: building the routing table, connecting to platforms (Telegram, etc.), and running message loops. The daemon passes a callback for agent dispatch, keeping this crate decoupled from the runtime.
Structs§
- Channel
Config - Channel configuration entry.
- Channel
Message - A message received from or sent to a channel.
- Channel
Router - Routes channel events to agents via three-tier fallback.
- Channel
Sender - A cloneable sender extracted from a
ChannelHandle. - Routing
Rule - A routing rule mapping platform/channel to an agent.
Enums§
- Platform
- Messaging platform identifier.
Functions§
- build_
router - Build a
ChannelRouterfrom channel config entries. - parse_
platform - Parse a platform name string into a
Platformenum. - spawn_
channels - Connect all configured channels and spawn message loops.