2025-06-14 13:44:10 -05:00
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace AnthropicClient.Models;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represents a citation for specific locations within text content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CharacterLocationCitation : Citation
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the start character index of the citation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("start_char_index")]
|
|
|
|
|
public int StartCharIndex { get; init; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the end character index of the citation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonPropertyName("end_char_index")]
|
|
|
|
|
public int EndCharIndex { get; init; }
|
2025-06-15 11:49:48 -05:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="CharacterLocationCitation"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>A new instance of <see cref="CharacterLocationCitation"/>.</returns>
|
|
|
|
|
public CharacterLocationCitation() : base(CitationType.CharacterLocation)
|
|
|
|
|
{
|
|
|
|
|
}
|
2025-06-14 13:44:10 -05:00
|
|
|
}
|