systemprompt-api 0.15.0

Axum-based HTTP server and API gateway for systemprompt.io AI governance infrastructure. Exposes governed agents, MCP, A2A, and admin endpoints with rate limiting and RBAC.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Request-context middleware: establishing the per-request execution identity.
//!
//! Combines the [`ContextExtractor`] abstraction with the per-route middleware
//! flavours ([`PublicContextMiddleware`], [`UserOnlyContextMiddleware`],
//! [`A2AContextMiddleware`], [`McpContextMiddleware`]) and the context-id
//! sources ([`HeaderSource`], [`PayloadSource`]) that feed them.

pub mod extractors;
pub mod middleware;
pub mod sources;

pub use extractors::ContextExtractor;
pub use middleware::{
    A2AContextMiddleware, McpContextMiddleware, PublicContextMiddleware, UserOnlyContextMiddleware,
};
pub use sources::{HeaderSource, PayloadSource};