13 writes to Annotations
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (10)
255new() { Contents = [new TextContent("D") { Annotations = [new()] }] }, 256new() { Contents = [new TextContent("E") { Annotations = [new()] }] }, 257new() { Contents = [new TextContent("F") { Annotations = [new()] }] }, 258new() { Contents = [new TextContent("G") { Annotations = [] }] }, 259new() { Contents = [new TextContent("H") { Annotations = [] }] }, 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()] }] },
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (1)
254(((TextContent)textUpdate.Contents[0]).Annotations ??= []).Add(new CitationAnnotation
OpenAIChatClient.cs (1)
506(annotationContent.Annotations ??= []).Add(new CitationAnnotation
OpenAIResponsesChatClient.cs (1)
678(destination.Annotations ??= []).Add(new CitationAnnotation
6 references to Annotations
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponseExtensions.cs (1)
252if (content is TContent tmp && tmp.Annotations is not { Count: > 0 })
Microsoft.Extensions.AI.OpenAI (2)
MicrosoftExtensionsAIChatExtensions.cs (2)
85if (content.Annotations is null) 90foreach (var annotation in content.Annotations)
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIResponseClientIntegrationTests.cs (3)
35Assert.NotNull(tc.Annotations); 36Assert.NotEmpty(tc.Annotations); 37Assert.All(tc.Annotations, a =>