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
+11
View File
@@ -2,8 +2,14 @@ using System.Text.Json.Serialization;
namespace AnthropicClient.Models;
/// <summary>
/// Represents a JSON delta.
/// </summary>
public class JsonDelta : ContentDelta
{
/// <summary>
/// Gets the partial JSON.
/// </summary>
[JsonPropertyName("partial_json")]
public string PartialJson { get; init; } = string.Empty;
@@ -12,6 +18,11 @@ public class JsonDelta : ContentDelta
{
}
/// <summary>
/// Initializes a new instance of the <see cref="JsonDelta"/> class.
/// </summary>
/// <param name="partialJson">The partial JSON.</param>
/// <returns>A new instance of the <see cref="JsonDelta"/> class.</returns>
public JsonDelta(string partialJson) : base(ContentDeltaType.JsonDelta)
{
PartialJson = partialJson;