ra2a 0.3.0

A Rust implementation of the Agent2Agent (A2A) Protocol SDK
Documentation

A2A Rust SDK

A Rust implementation of the Agent2Agent (A2A) Protocol SDK.

This crate provides a complete implementation of the A2A protocol for building agentic applications that can communicate with each other following the Agent2Agent Protocol.

Features

  • A2A Protocol Compliant: Full implementation of the A2A specification
  • Async/Await: Built on tokio for high-performance async operations
  • Type-Safe: Strongly typed models with serde serialization
  • Extensible: Modular design with optional features

Quick Start

use ra2a::client::{A2AClient, Client};

#[tokio::main]
async fn main() -> Result<(), ra2a::error::A2AError> {
    let client = A2AClient::new("https://agent.example.com")?;
    let card = client.get_agent_card().await?;
    println!("Connected to agent: {}", card.name);
    Ok(())
}