2024-06-28 10:54:00 -05:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AnthropicClient.Models;
|
|
|
|
|
|
2024-06-28 16:30:09 -05:00
|
|
|
public class AnthropicEvent
|
2024-06-28 10:54:00 -05:00
|
|
|
{
|
|
|
|
|
public string Type { get; init; } = string.Empty;
|
|
|
|
|
public EventData Data { get; init; } = default!;
|
|
|
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
|
internal AnthropicEvent()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AnthropicEvent(string type, EventData data)
|
|
|
|
|
{
|
|
|
|
|
Type = type;
|
|
|
|
|
Data = data;
|
|
|
|
|
}
|
|
|
|
|
}
|