using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
///
/// Represents the usage of a response.
///
public class Usage
{
///
/// Gets the number of input tokens used.
///
[JsonPropertyName("input_tokens")]
public int InputTokens { get; init; }
///
/// Gets the number of output tokens used.
///
[JsonPropertyName("output_tokens")]
public int OutputTokens { get; init; }
///
/// Gets the number of tokens written to the cache when creating a new entry
///
[JsonPropertyName("cache_creation_input_tokens")]
public int CacheCreationInputTokens { get; init; }
///
/// Gets the number of tokens retrieved from the cache for the request.
///
[JsonPropertyName("cache_read_input_tokens")]
public int CacheReadInputTokens { get; init; }
}