Expand description
Channel SDK for anyclaw.
Provides the Channel trait for building messaging integrations and
ChannelHarness for JSON-RPC stdio framing, handshake, and message routing.
§Stability
This crate is unstable — APIs may change between releases.
Enums marked #[non_exhaustive] will have new variants added; match arms must include _.
Re-exports§
pub use broker::PermissionBroker;pub use content::content_to_string;pub use error::ChannelSdkError;pub use harness::ChannelHarness;pub use trait_def::Channel;
Modules§
- broker
- Permission request/response oneshot management.
- content
- Extract displayable text from agent content values.
- error
- Error types for channel SDK operations.
- harness
- JSON-RPC stdio harness that drives a
Channelimplementation. - testing
- Test wrapper for unit-testing
Channelimplementations without JSON-RPC framing. - trait_
def - The
Channeltrait that channel authors implement.
Structs§
- Channel
AckConfig - Ack configuration passed to channels via initialize handshake. Lightweight mirror of config crate’s AckConfig — SDK types must not depend on config.
- Channel
Capabilities - Channel capabilities advertised during initialize handshake.
- Channel
Send Message - Channel → Anyclaw: user sent a message.
- Deliver
Message - Anyclaw → Channel: deliver agent message/streaming update.
- Peer
Info - Peer identity information for inbound messages.