systemprompt-agent 0.57.0

Agent-to-Agent (A2A) protocol for systemprompt.io AI governance: streaming, JSON-RPC models, task lifecycle, .well-known discovery, and governed agent orchestration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! OAuth2/JWT authentication for the A2A server surface.
//!
//! Wires the Axum middleware ([`agent_oauth_middleware`]) to the token
//! validation routine ([`validate_oauth_for_request`]) and the shared
//! [`AgentOAuthState`] / [`AgentOAuthConfig`] carried on requests.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

pub mod middleware;
pub mod types;
pub mod validation;

pub use middleware::{agent_oauth_middleware, agent_oauth_middleware_wrapper};
pub use types::{AgentOAuthConfig, AgentOAuthState};
pub use validation::{extract_bearer_token, validate_oauth_for_request};