systemprompt-api 0.21.1

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
//! Context-id sources for the context middleware.
//!
//! [`HeaderSource`] reads the context id from request headers;
//! [`PayloadSource`] recovers it from the JSON-RPC body (the A2A wire location)
//! while preserving the body for downstream handlers.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

pub mod headers;
pub mod payload;

pub use headers::HeaderSource;
pub use payload::PayloadSource;
pub use systemprompt_models::execution::ContextIdSource;