7 instantiations of TextSpanAnnotatedRegion
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\AIAnnotationTests.cs (2)
33List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }]; 49AnnotatedRegions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }],
Contents\CitationAnnotationTests.cs (2)
42List<AnnotatedRegion> regions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }]; 75AnnotatedRegions = [new TextSpanAnnotatedRegion { StartIndex = 10, EndIndex = 42 }],
Microsoft.Extensions.AI.OpenAI (3)
OpenAIAssistantsChatClient.cs (1)
246AnnotatedRegions = [new TextSpanAnnotatedRegion { StartIndex = tau.StartIndex, EndIndex = tau.EndIndex }],
OpenAIChatClient.cs (1)
508AnnotatedRegions = [new TextSpanAnnotatedRegion { StartIndex = annotation.StartIndex, EndIndex = annotation.EndIndex }],
OpenAIResponsesChatClient.cs (1)
638AnnotatedRegions = [new TextSpanAnnotatedRegion { StartIndex = ota.UriCitationStartIndex, EndIndex = ota.UriCitationEndIndex }],
12 references to TextSpanAnnotatedRegion
Microsoft.Extensions.AI.Abstractions (4)
Contents\AIAnnotation.cs (1)
25/// The most common form of <see cref="AnnotatedRegion"/> is <see cref="TextSpanAnnotatedRegion"/>, which provides starting and ending character indices
Contents\AnnotatedRegion.cs (2)
11/// and ending indices into text content are provided by <see cref="TextSpanAnnotatedRegion"/>. 14[JsonDerivedType(typeof(TextSpanAnnotatedRegion), typeDiscriminator: "textSpan")]
Contents\TextSpanAnnotatedRegion.cs (1)
15/// Initializes a new instance of the <see cref="TextSpanAnnotatedRegion"/> class.
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\AIAnnotationTests.cs (2)
66TextSpanAnnotatedRegion? region = Assert.IsType<TextSpanAnnotatedRegion>(Assert.Single(deserialized.AnnotatedRegions));
Contents\CitationAnnotationTests.cs (2)
93TextSpanAnnotatedRegion region = Assert.IsType<TextSpanAnnotatedRegion>(Assert.Single(deserialized.AnnotatedRegions));
Microsoft.Extensions.AI.OpenAI (2)
MicrosoftExtensionsAIChatExtensions.cs (2)
97if (citation.AnnotatedRegions?.OfType<TextSpanAnnotatedRegion>().ToArray() is { Length: > 0 } regions) 99foreach (var region in regions)
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIResponseClientIntegrationTests.cs (2)
43var region = Assert.IsType<TextSpanAnnotatedRegion>(regions[0]);