systemprompt-api 0.47.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
17
//! Capture buffers for gateway audit payloads.
//!
//! Usage is not captured separately: `CanonicalUsage` already carries the six
//! counts with their convention attached, and a parallel struct only invited a
//! lossy round trip on the way to billing.
//!
//! Copyright (c) systemprompt.io — Business Source License 1.1.
//! See <https://systemprompt.io> for licensing details.

use systemprompt_identifiers::AiToolCallId;

#[derive(Debug, Clone)]
pub struct CapturedToolUse {
    pub ai_tool_call_id: AiToolCallId,
    pub tool_name: String,
    pub tool_input: String,
}