2023-09-26 03:04:04 +00:00
|
|
|
namespace BotSharp.Abstraction.Conversations.Models;
|
|
|
|
|
|
|
|
|
|
public class TokenStatsModel
|
|
|
|
|
{
|
2023-12-13 18:12:25 +00:00
|
|
|
public string Provider { get; set; }
|
2023-09-26 03:04:04 +00:00
|
|
|
public string Model { get; set; }
|
2023-10-30 16:48:18 +00:00
|
|
|
public string Prompt { get; set; }
|
2025-04-21 16:19:56 +00:00
|
|
|
public int TextInputTokens { get; set; }
|
|
|
|
|
public int CachedTextInputTokens { get; set; }
|
|
|
|
|
public int AudioInputTokens { get; set; }
|
|
|
|
|
public int CachedAudioInputTokens { get; set; }
|
|
|
|
|
public int TextOutputTokens { get; set; }
|
|
|
|
|
public int AudioOutputTokens { get; set; }
|
2023-12-13 18:12:25 +00:00
|
|
|
public AgentLlmConfig LlmConfig { get; set; }
|
2025-04-21 16:19:56 +00:00
|
|
|
|
|
|
|
|
public int TotalInputTokens => TextInputTokens + CachedTextInputTokens + AudioInputTokens + CachedAudioInputTokens;
|
|
|
|
|
public int TotalOutputTokens => TextOutputTokens + AudioOutputTokens;
|
2023-09-26 03:04:04 +00:00
|
|
|
}
|