Skip to main content

a2a/
lib.rs

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