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 errors;
7pub mod event;
8pub mod jsonrpc;
9pub mod types;
10
11pub use agent_card::*;
12pub use errors::*;
13pub use event::*;
14pub use jsonrpc::*;
15pub use types::*;
16
17/// The A2A protocol version this SDK implements.
18pub const VERSION: &str = "1.0";
19
20/// Service parameter key for the A2A protocol version.
21pub const SVC_PARAM_VERSION: &str = "A2A-Version";
22
23/// Service parameter key for extensions the client wants to use.
24pub const SVC_PARAM_EXTENSIONS: &str = "A2A-Extensions";