feat: add models for streaming messages

This commit is contained in:
Stevan Freeborn
2024-06-28 10:54:00 -05:00
parent 422719f509
commit a4784fd5db
27 changed files with 551 additions and 111 deletions
@@ -0,0 +1,20 @@
using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
public record AnthropicEvent
{
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;
}
}