Files
anthropic-client/src/AnthropicClient/Models/ChatUsage.cs
T

21 lines
486 B
C#
Raw Normal View History

2024-06-27 23:26:53 -05:00
using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
/// <summary>
/// Represents the usage of a chat response.
/// </summary>
public class ChatUsage
{
/// <summary>
/// Gets the number of input tokens used.
/// </summary>
[JsonPropertyName("input_tokens")]
2024-06-28 10:54:00 -05:00
public int InputTokens { get; init; }
2024-06-27 23:26:53 -05:00
/// <summary>
/// Gets the number of output tokens used.
/// </summary>
[JsonPropertyName("output_tokens")]
2024-06-28 10:54:00 -05:00
public int OutputTokens { get; init; }
2024-06-27 23:26:53 -05:00
}