Skip to main content

Crate ra2a

Crate ra2a 

Source
Expand description

§A2A Rust SDK

A Rust implementation of the Agent2Agent (A2A) Protocol v1.0.

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

§Features

  • A2A Protocol v1.0 Compliant: Full implementation of the latest specification
  • Async/Await: Built on tokio for high-performance async operations
  • Type-Safe: Strongly typed models with newtype IDs and serde serialization
  • Extensible: Modular design with optional features (gRPC, telemetry, SQL)

Re-exports§

pub use error::A2AError;
pub use error::Result;
pub use types::AgentCapabilities;
pub use types::AgentCard;
pub use types::AgentInterface;
pub use types::AgentSkill;
pub use types::Artifact;
pub use types::ArtifactId;
pub use types::ContextId;
pub use types::ListTasksRequest;
pub use types::ListTasksResponse;
pub use types::Message;
pub use types::MessageId;
pub use types::Metadata;
pub use types::Part;
pub use types::PartContent;
pub use types::PushNotificationConfig;
pub use types::Role;
pub use types::SendMessageConfiguration;
pub use types::SendMessageRequest;
pub use types::SendMessageResponse;
pub use types::StreamResponse;
pub use types::Task;
pub use types::TaskArtifactUpdateEvent;
pub use types::TaskId;
pub use types::TaskState;
pub use types::TaskStatus;
pub use types::TaskStatusUpdateEvent;
pub use types::TransportProtocol;

Modules§

clientclient
A2A client module.
error
Error types for the A2A SDK.
serverserver
A2A Server module.
types
A2A Protocol v1.0 types and data models.

Constants§

PROTOCOL_VERSION
Protocol version supported by this SDK.
SDK_VERSION
SDK version.
SVC_PARAM_EXTENSIONS
The service parameter key for A2A extensions.
SVC_PARAM_VERSION
The service parameter key for the A2A protocol version.
WELL_KNOWN_AGENT_CARD_PATH
Well-known path for the public agent card endpoint.

Functions§

agent_card_url
Constructs the full agent card URL from a base URL.