5 releases

Uses new Rust 2024

0.2.4 Apr 5, 2026
0.2.3 Apr 4, 2026
0.2.2 Apr 3, 2026
0.2.1 Apr 3, 2026
0.2.0 Apr 3, 2026

#2 in #wire-compatible

Download history 135/week @ 2026-04-04 83/week @ 2026-04-11 43/week @ 2026-04-18 25/week @ 2026-04-25 5/week @ 2026-05-02

184 downloads per month
Used in 5 crates

Apache-2.0

97KB
2K SLoC

agntcy-a2a

Core Rust types for the A2A v1 protocol.

This crate is published as agntcy-a2a and imported in Rust as a2a.

What It Provides

  • A2A wire-compatible message, task, artifact, and event types
  • JSON-RPC request and response models
  • Protocol error types and helpers
  • Serde implementations aligned with the A2A protocol shape

Install

[dependencies]
a2a = { package = "agntcy-a2a", version = "0.2" }

Example

use a2a::{Message, Part, Role};

let message = Message::new(Role::User, vec![Part::text("hello")]);
assert_eq!(message.text(), Some("hello"));

Workspace

This crate is part of the a2a-rs workspace.

Dependencies

~1.7–3MB
~54K SLoC