Skip to main content

systemprompt_api/services/gateway/
captures.rs

1//! Capture buffers for gateway audit payloads.
2//!
3//! Usage is not captured separately: `CanonicalUsage` already carries the six
4//! counts with their convention attached, and a parallel struct only invited a
5//! lossy round trip on the way to billing.
6//!
7//! Copyright (c) systemprompt.io — Business Source License 1.1.
8//! See <https://systemprompt.io> for licensing details.
9
10use systemprompt_identifiers::AiToolCallId;
11
12#[derive(Debug, Clone)]
13pub struct CapturedToolUse {
14    pub ai_tool_call_id: AiToolCallId,
15    pub tool_name: String,
16    pub tool_input: String,
17}