Share via


AIAnnotation Class

Definition

Represents an annotation on content.

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

Constructors

AIAnnotation()

Initializes a new instance of the AIAnnotation class.

Properties

AdditionalProperties

Gets or sets additional metadata specific to the provider or source type.

AnnotatedRegions

Gets or sets any target regions for the annotation, pointing to where in the associated AIContent this annotation applies.

RawRepresentation

Gets or sets the raw representation of the annotation from an underlying implementation.

Applies to