agent-client-protocol-derive
Procedural derives for custom JSON-RPC messages in the Agent Client Protocol Rust SDK.
The core agent-client-protocol crate re-exports these macros, so applications
normally do not need a direct dependency on this crate.
[]
= "3"
= { = "1", = ["derive"] }
use ;
use ;
JsonRpcNotification provides the corresponding notification derive through
#[notification(method = "...")]. The derives use Serde for message bodies
and do not require the core's schemars feature.
Custom crate paths are supported by the crate attribute on request,
notification, and response. See the
macro reference for attributes
and generic-type support.
License
Apache-2.0. The published package includes LICENSE.