Expand description
§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
Re-exports§
pub use error::A2AError;pub use error::Result;pub use types::AgentCapabilities;pub use types::AgentCard;pub use types::AgentSkill;pub use types::Artifact;pub use types::Event;pub use types::Message;pub use types::MessageSendParams;pub use types::Metadata;pub use types::Part;pub use types::PushConfig;pub use types::Role;pub use types::SendMessageResult;pub use types::Task;pub use types::TaskArtifactUpdateEvent;pub use types::TaskIdParams;pub use types::TaskPushConfig;pub use types::TaskQueryParams;pub use types::TaskState;pub use types::TaskStatus;pub use types::TaskStatusUpdateEvent;pub use types::TaskVersion;
Modules§
- client
client - A2A client module.
- error
- Error types for the A2A SDK.
- server
server - A2A Server module.
- types
- A2A Protocol types and data models.
Constants§
- EXTENSIONS_
META_ KEY - The metadata key for A2A extensions passed in request/response headers.
- PROTOCOL_
VERSION - Protocol version supported by this SDK.
- SDK_
VERSION - SDK version
- WELL_
KNOWN_ AGENT_ CARD_ PATH - Well-known path for the public agent card endpoint (aligned with Go’s
WellKnownAgentCardPath).
Functions§
- agent_
card_ url - Constructs the full agent card URL from a base URL.