feat: create chat message

This commit is contained in:
Stevan Freeborn
2024-06-27 23:26:53 -05:00
parent 68b359163d
commit 4c2cee643a
77 changed files with 3860 additions and 0 deletions
@@ -0,0 +1,42 @@
using System.Text.Json.Serialization;
using AnthropicClient.Utils;
namespace AnthropicClient.Models;
/// <summary>
/// Represents an input property.
/// </summary>
public class InputProperty
{
/// <summary>
/// Gets the type of the input property.
/// </summary>
public string Type { get; init; } = string.Empty;
/// <summary>
/// Gets the description of the input property.
/// </summary>
public string Description { get; init; } = string.Empty;
[JsonConstructor]
internal InputProperty()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="InputProperty"/> class.
/// </summary>
/// <param name="type">The type of the input property.</param>
/// <param name="description">The description of the input property.</param>
/// <exception cref="ArgumentNullException">Thrown when the type or description is null.</exception>
/// <returns>A new instance of the <see cref="InputProperty"/> class.</returns>
public InputProperty(string type, string description)
{
ArgumentValidator.ThrowIfNull(type, nameof(type));
ArgumentValidator.ThrowIfNull(description, nameof(description));
Type = type;
Description = description;
}
}