a2a/lib.rs
1// Copyright AGNTCY Contributors (https://github.com/agntcy)
2// Copyright A2A Contributors (https://github.com/a2aproject)
3// SPDX-License-Identifier: Apache-2.0
4#![doc = include_str!("../README.md")]
5
6pub mod agent_card;
7pub mod errordetails;
8pub mod errors;
9pub mod event;
10pub mod jsonrpc;
11pub mod types;
12
13pub use agent_card::*;
14pub use errordetails::*;
15pub use errors::*;
16pub use event::*;
17pub use jsonrpc::*;
18pub use types::*;
19
20/// The A2A protocol version this SDK implements.
21pub const VERSION: &str = "1.0";
22
23/// Service parameter key for the A2A protocol version.
24pub const SVC_PARAM_VERSION: &str = "A2A-Version";
25
26/// Service parameter key for extensions the client wants to use.
27pub const SVC_PARAM_EXTENSIONS: &str = "A2A-Extensions";