agent-client-protocol 0.15.0

Core protocol types and traits for the Agent Client Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! JSON-RPC trait implementations for protocol-level (`$/`-prefixed) messages.

#[cfg(feature = "unstable_cancel_request")]
use crate::schema::v1::{CancelRequestNotification, ProtocolLevelNotification};

#[cfg(feature = "unstable_cancel_request")]
impl_jsonrpc_notification!(CancelRequestNotification, "$/cancel_request");

#[cfg(feature = "unstable_cancel_request")]
impl_jsonrpc_protocol_level_notification_enum!(ProtocolLevelNotification {
    CancelRequestNotification => "$/cancel_request",
});