Skip to main content

ldp_protocol/
lib.rs

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