llm_link/normalizer/
types.rs

1
2/// Token usage information
3#[derive(Debug, Clone)]
4#[allow(dead_code)]
5pub struct Usage {
6    pub prompt_tokens: u32,
7    pub completion_tokens: u32,
8    pub total_tokens: u32,
9}
10
11/// LLM response
12#[derive(Debug, Clone)]
13#[allow(dead_code)]
14pub struct Response {
15    pub content: String,
16    pub model: String,
17    pub usage: Usage,
18    pub tool_calls: Option<serde_json::Value>,  // Store tool_calls from LLM response
19}
20
21/// Model information
22#[derive(Debug, Clone)]
23pub struct Model {
24    pub id: String,
25}
26