1 type derived from AIAnnotation
Microsoft.Extensions.AI.Abstractions (1)
Contents\CitationAnnotation.cs (1)
12public class CitationAnnotation : AIAnnotation
11 instantiations of AIAnnotation
Microsoft.Extensions.AI.Abstractions.Tests (11)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (8)
255new() { Contents = [new TextContent("D") { Annotations = [new()] }] }, 256new() { Contents = [new TextContent("E") { Annotations = [new()] }] }, 257new() { Contents = [new TextContent("F") { Annotations = [new()] }] }, 260new() { Contents = [new TextContent("I") { Annotations = [new()] }] }, 261new() { Contents = [new TextContent("J") { Annotations = [new()] }] }, 263new() { Contents = [new TextContent("L") { Annotations = [new()] }] }, 266new() { Contents = [new TextContent("O") { Annotations = [new()] }] }, 267new() { Contents = [new TextContent("P") { Annotations = [new()] }] },
Contents\AIAnnotationTests.cs (3)
16AIAnnotation a = new(); 25AIAnnotation a = new(); 46AIAnnotation original = new()
11 references to AIAnnotation
Microsoft.Extensions.AI.Abstractions (3)
Contents\AIAnnotation.cs (2)
17/// Initializes a new instance of the <see cref="AIAnnotation"/> class. 32/// If an <see cref="AIAnnotation"/> is created to represent some underlying object from another object
Contents\AIContent.cs (1)
31public IList<AIAnnotation>? Annotations { get; set; }
Microsoft.Extensions.AI.Abstractions.Tests (7)
Contents\AIAnnotationTests.cs (7)
16AIAnnotation a = new(); 25AIAnnotation a = new(); 46AIAnnotation original = new() 53string json = JsonSerializer.Serialize(original, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(AIAnnotation))); 56var deserialized = (AIAnnotation?)JsonSerializer.Deserialize(json, AIJsonUtilities.DefaultOptions.GetTypeInfo(typeof(AIAnnotation)));
Microsoft.Extensions.AI.OpenAI (1)
MicrosoftExtensionsAIChatExtensions.cs (1)
90foreach (var annotation in content.Annotations)