systemprompt_api/services/gateway/
captures.rs1use systemprompt_identifiers::AiToolCallId;
2
3#[derive(Debug, Clone, Copy, Default)]
4#[expect(
5 clippy::struct_field_names,
6 reason = "every field is a token count; the `_tokens` suffix is the domain vocabulary shared \
7 with the provider usage wire formats"
8)]
9pub struct CapturedUsage {
10 pub input_tokens: u32,
11 pub output_tokens: u32,
12 pub cache_read_tokens: u32,
13 pub cache_creation_tokens: u32,
14}
15
16#[derive(Debug, Clone)]
17pub struct CapturedToolUse {
18 pub ai_tool_call_id: AiToolCallId,
19 pub tool_name: String,
20 pub tool_input: String,
21}