Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

Crate ra2a

Crate ra2a 

Source
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§

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