using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
///
/// Represents a response.
///
public class MessageResponse
{
///
/// Gets the ID of the response.
///
public string Id { get; init; } = string.Empty;
///
/// Gets the model used for the response.
///
public string Model { get; init; } = string.Empty;
///
/// Gets the role of the response.
///
public string Role { get; init; } = string.Empty;
///
/// Gets the stop reason of the response.
///
[JsonPropertyName("stop_reason")]
public string? StopReason { get; init; }
///
/// Gets the stop sequence of the response.
///
[JsonPropertyName("stop_sequence")]
public string? StopSequence { get; init; }
///
/// Gets the type of the response.
///
public string Type { get; init; } = string.Empty;
///
/// Gets the usage of the response.
///
public Usage Usage { get; init; } = new();
///
/// Gets the contents of the response.
///
public List Content { get; init; } = [];
///
/// Gets the tool call of the response. If the response does not contain a tool call, this property is null.
///
[JsonIgnore]
public ToolCall? ToolCall { get; set; } = null;
}