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§
- client
client - A2A client module.
- error
- Error types for the A2A SDK.
- server
server - 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.