docs: add missing xml comments

This commit is contained in:
Stevan Freeborn
2024-06-29 22:20:55 -05:00
parent 5edc0b5fff
commit 16624798bf
16 changed files with 233 additions and 0 deletions
@@ -2,9 +2,19 @@ using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
/// <summary>
/// Represents an event from the Anthropic API.
/// </summary>
public class AnthropicEvent
{
/// <summary>
/// The type of the event.
/// </summary>
public string Type { get; init; } = string.Empty;
/// <summary>
/// The data associated with the event.
/// </summary>
public EventData Data { get; init; } = default!;
[JsonConstructor]
@@ -12,6 +22,12 @@ public class AnthropicEvent
{
}
/// <summary>
/// Initializes a new instance of the <see cref="AnthropicEvent"/> class.
/// </summary>
/// <param name="type">The type of the event.</param>
/// <param name="data">The data associated with the event.</param>
/// <returns>A new instance of the <see cref="AnthropicEvent"/> class.</returns>
public AnthropicEvent(string type, EventData data)
{
Type = type;