Expand description
acai: Agent2Agent Communication API Implementation
A Rust implementation of the Agent2Agent (A2A) protocol, enabling standardized communication between various AI agents and clients.
This crate provides:
- Type definitions for all A2A protocol messages and data structures
- Serialization/deserialization support for JSON-RPC requests and responses
- Validation of protocol constraints
- HTTP client for making A2A requests
- HTTP server for handling A2A requests (supporting both HTTP/1.1 and HTTP/2)
- Structured logging via indicio
Re-exports§
pub use client::Client;
pub use client::ClientConfig;
pub use client::Error as ClientError;
pub use error::TaskError;
pub use error::UrlValidationError;
pub use error::to_client_error;
pub use error::to_json_rpc_error;
pub use error::to_server_error;
pub use error::to_task_error;
pub use error::validate_url;
pub use server::Error as ServerError;
pub use server::MethodRouter;
pub use server::RequestHandler;
pub use server::Server;
pub use server::ServerConfig;
pub use server::jwks::Claims;
pub use server::jwks::JwksError;
pub use server::jwks::JwksManager;
Modules§
Structs§
- Agent
Authentication - Agent Authentication information
- Agent
Capabilities - Agent Capabilities
- Agent
Card - Agent Card
- Agent
Provider - Agent Provider
- Agent
Skill - Agent Skill
- Artifact
- Artifact
- File
Content - File Content
- Form
Field - Message Part
- Form
Schema - Form Schema
- Json
RpcError - JSON-RPC Error
- Json
RpcRequest - JSON-RPC Request
- Json
RpcResponse - Generic response for any JSON-RPC method
- Message
- Message
- Push
Notification Config - Push Notification Configuration
- Reqwest
Error - The Errors that may occur when processing a
Request
. - Task
- Task
- Task
Artifact Update Event - Task Artifact Update Event
- Task
IdParams - Task ID Parameters
- Task
Push Notification Config - Task Push Notification Configuration
- Task
Query Params - Task Query Parameters
- Task
Send Params - Task Send Parameters
- Task
Status - Task Status
- Task
Status Update Event - Task Status Update Event
- Token
Data - The return type of a successful call to decode.
Enums§
- Message
Role - Message Role
- Part
- Streaming
Response Content - A streaming response result content type.
- Task
State - Task State
- Value
- Represents any valid JSON value.