systemprompt-api 0.14.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
16
17
// JSON: protocol boundary — body shape is owned by the models::wire Anthropic
// codec.
use serde_json::Value;
use systemprompt_models::wire::anthropic;

use super::super::super::canonical::CanonicalRequest;

#[cfg_attr(
    not(feature = "test-api"),
    expect(
        unreachable_pub,
        reason = "items are re-exported via `test_api` only when the feature is on"
    )
)]
pub fn build_request_body(request: &CanonicalRequest, upstream_model: &str) -> Value {
    anthropic::build_request_body(request, upstream_model)
}