llm_link/llm/
types.rs

1use serde_json;
2
3/// Token usage information
4#[derive(Debug, Clone)]
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)]
13pub struct Response {
14    pub content: String,
15    pub model: String,
16    pub usage: Usage,
17    pub tool_calls: Option<serde_json::Value>,  // Store tool_calls from LLM response
18}
19
20/// Model information
21#[derive(Debug, Clone)]
22pub struct Model {
23    pub id: String,
24}
25