using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
///
/// Represents data for a content_block_stop event.
///
public class ContentStopEventData : EventData
{
///
/// Gets the index of the content block.
///
public int Index { get; init; }
[JsonConstructor]
internal ContentStopEventData() : base(EventType.ContentBlockStop)
{
}
///
/// Initializes a new instance of the class.
///
/// The index of the content block.
/// A new instance of the class.
public ContentStopEventData(int index) : base(EventType.ContentBlockStop)
{
Index = index;
}
}