Skip to main content

a2a_server/
lib.rs

1// Copyright AGNTCY Contributors (https://github.com/agntcy)
2// SPDX-License-Identifier: Apache-2.0
3pub mod agent_card;
4pub mod executor;
5pub mod handler;
6pub mod jsonrpc;
7pub mod middleware;
8pub mod push;
9pub mod rest;
10pub mod sse;
11pub mod task_store;
12#[cfg(feature = "rustls")]
13pub mod tls;
14
15pub use agent_card::{AgentCardProducer, StaticAgentCard, WELL_KNOWN_AGENT_CARD_PATH};
16pub use executor::{AgentExecutor, ExecutorContext};
17pub use handler::{DefaultRequestHandler, RequestHandler};
18pub use middleware::{CallContext, CallInterceptor, InterceptedHandler, ServiceParams, User};
19pub use push::{HttpPushSender, InMemoryPushConfigStore, PushConfigStore};
20pub use task_store::{InMemoryTaskStore, TaskStore};
21
22#[cfg(test)]
23pub(crate) mod test_util {
24    pub fn install_crypto_provider() {
25        #[cfg(feature = "rustls-tls")]
26        {
27            let _ = rustls::crypto::aws_lc_rs::default_provider().install_default();
28        }
29    }
30}