Files
anthropic-client/src/AnthropicClient/Models/Usage.cs
T
2024-07-03 16:57:27 -05:00

21 lines
477 B
C#

using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
/// <summary>
/// Represents the usage of a response.
/// </summary>
public class Usage
{
/// <summary>
/// Gets the number of input tokens used.
/// </summary>
[JsonPropertyName("input_tokens")]
public int InputTokens { get; init; }
/// <summary>
/// Gets the number of output tokens used.
/// </summary>
[JsonPropertyName("output_tokens")]
public int OutputTokens { get; init; }
}