#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
test,
allow(
clippy::expect_used,
clippy::panic,
clippy::unwrap_used,
clippy::unreachable
)
)]
#[cfg(target_family = "wasm")]
compile_error!(
"rig-a2a is native-only: it serves agents over HTTP with the A2A SDK's \
axum server. Disable the `a2a` feature for wasm targets."
);
#[cfg(not(target_family = "wasm"))]
mod client;
#[cfg(not(target_family = "wasm"))]
mod executor;
#[cfg(not(target_family = "wasm"))]
mod history;
#[cfg(all(feature = "otel", not(target_family = "wasm")))]
mod otel;
#[cfg(not(target_family = "wasm"))]
mod parts;
#[cfg(not(target_family = "wasm"))]
mod server;
#[cfg(not(target_family = "wasm"))]
mod v03;
#[cfg(not(target_family = "wasm"))]
pub use client::{
DEFAULT_TIMEOUT, FileContent, RemoteAgent, RemoteAgentBuilder, RemoteError, RemoteFile, Reply,
ReplyEvent,
};
#[cfg(not(target_family = "wasm"))]
pub use executor::{A2aExecutor, DEFAULT_MAX_CONCURRENT_TASKS, DEFAULT_MAX_RUN_DURATION};
#[cfg(not(target_family = "wasm"))]
pub use history::{DEFAULT_HISTORY_TOKENS, DEFAULT_MAX_CONTEXTS};
#[cfg(not(target_family = "wasm"))]
pub use server::{A2aServer, DEFAULT_MAX_REQUEST_BYTES, JSONRPC_PATH, REST_PATH};
#[cfg(not(target_family = "wasm"))]
pub use v03::V03_PATH;
#[cfg(not(target_family = "wasm"))]
pub use a2a;
#[cfg(not(target_family = "wasm"))]
pub use a2a_client;
#[cfg(not(target_family = "wasm"))]
pub use a2a_server;
#[cfg(not(target_family = "wasm"))]
pub use axum;
#[cfg(not(target_family = "wasm"))]
pub use rig_memory;
#[cfg(all(test, not(target_family = "wasm")))]
mod tests;