1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! LDP — LLM Delegate Protocol
//!
//! An identity-aware communication protocol for multi-agent LLM systems.
//! LDP adds delegation intelligence on top of agent communication protocols
//! like A2A and MCP: rich identity, progressive payload modes, governed
//! sessions, structured provenance, and trust domains.
//!
//! # Architecture
//!
//! ```text
//! ┌──────────────────────────────────────────┐
//! │ Delegation Intelligence — LDP │
//! │ (identity, routing, provenance, trust) │
//! ├──────────────────────────────────────────┤
//! │ Agent Communication — A2A │
//! ├──────────────────────────────────────────┤
//! │ Tool Integration — MCP │
//! └──────────────────────────────────────────┘
//! ```
//!
//! # Quick Start
//!
//! ```rust,ignore
//! use ldp_protocol::{LdpAdapter, LdpAdapterConfig};
//! use ldp_protocol::protocol::{ProtocolAdapter, TaskRequest};
//!
//! let adapter = LdpAdapter::new(LdpAdapterConfig::default());
//! let caps = adapter.discover("http://delegate.example.com").await?;
//! ```
//!
//! # Feature Flags
//!
//! - **`jamjet`** — Enable JamJet runtime integration. Adds `register_ldp_jamjet()`
//! for plugging LDP into JamJet's `ProtocolRegistry`.
pub use LdpAdapter;
pub use LdpClient;
pub use LdpAdapterConfig;
pub use ;
pub use ;
pub use LdpServer;
pub use SessionManager;
pub use ;
pub use *;