Skip to main content

Crate anyclaw_sdk_channel

Crate anyclaw_sdk_channel 

Source
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 Channel implementation.
testing
Test wrapper for unit-testing Channel implementations without JSON-RPC framing.
trait_def
The Channel trait that channel authors implement.

Structs§

ChannelAckConfig
Ack configuration passed to channels via initialize handshake. Lightweight mirror of config crate’s AckConfig — SDK types must not depend on config.
ChannelCapabilities
Channel capabilities advertised during initialize handshake.
ChannelSendMessage
Channel → Anyclaw: user sent a message.
DeliverMessage
Anyclaw → Channel: deliver agent message/streaming update.
PeerInfo
Peer identity information for inbound messages.