AnnotatedRegion Class

Definition

Describes the portion of an associated AIContent to which an annotation applies.

public ref class AnnotatedRegion
[System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.TextSpanAnnotatedRegion), "textSpan")]
[System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")]
public class AnnotatedRegion
[<System.Text.Json.Serialization.JsonDerivedType(typeof(Microsoft.Extensions.AI.TextSpanAnnotatedRegion), "textSpan")>]
[<System.Text.Json.Serialization.JsonPolymorphic(TypeDiscriminatorPropertyName="$type")>]
type AnnotatedRegion = class
Public Class AnnotatedRegion
Inheritance
AnnotatedRegion
Derived
Attributes

Remarks

Details about the region is provided by derived types based on how the region is described. For example, starting and ending indices into text content are provided by TextSpanAnnotatedRegion.

Constructors

AnnotatedRegion()

Initializes a new instance of the AnnotatedRegion class.

Applies to