using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
///
/// Represents a JSON delta.
///
public class JsonDelta : ContentDelta
{
///
/// Gets the partial JSON.
///
[JsonPropertyName("partial_json")]
public string PartialJson { get; init; } = string.Empty;
[JsonConstructor]
internal JsonDelta() : base(ContentDeltaType.JsonDelta)
{
}
///
/// Initializes a new instance of the class.
///
/// The partial JSON.
/// A new instance of the class.
public JsonDelta(string partialJson) : base(ContentDeltaType.JsonDelta)
{
PartialJson = partialJson;
}
}