systemprompt-agent 0.15.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
//! OAuth2/JWT authentication for the A2A server surface.
//!
//! Wires the Axum middleware ([`agent_oauth_middleware`]) to the token
//! validation routines ([`validate_agent_token`],
//! [`validate_oauth_for_request`]) and the shared [`AgentOAuthState`] /
//! [`AgentOAuthConfig`] carried on requests.

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

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