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
56
//! # a2a-ao
//!
//! Rust SDK for the Agent-to-Agent (A2A) protocol — the open standard for
//! agent interoperability, governed by the Linux Foundation.
//!
//! A2A enables AI agents to discover each other, delegate tasks, and collaborate
//! regardless of framework or platform.
//!
//! ## Architecture
//!
//! The A2A protocol has three layers:
//!
//! 1. **Canonical Data Model** — Protocol-agnostic type definitions (this crate's types)
//! 2. **Abstract Operations** — Core operations like `SendMessage`, `GetTask`, etc.
//! 3. **Protocol Bindings** — Wire-level: JSON-RPC 2.0, gRPC, HTTP+JSON
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use a2a_ao::{A2AClient, AgentCard};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! // Discover a remote agent
//! let card = AgentCard::discover("https://agent.example.com").await?;
//! println!("Found: {}", card.name);
//!
//! // Create a client and send a message
//! let client = A2AClient::new("https://agent.example.com");
//! let response = client.send_message_text("Summarize Q4 report").await?;
//! println!("Task state: {:?}", response.state);
//! Ok(())
//! }
//! ```
// Re-export primary types
pub use ;
pub use Artifact;
pub use ;
pub use A2AError;
pub use ;
pub use ;
pub use ;
pub use ;
pub use TaskEventStream;