Table of Contents

Class InteractionAnnotation

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A citation or other annotation attached to text content, discriminated by type.

[JsonConverter(typeof(InteractionAnnotationConverter))]
public abstract class InteractionAnnotation
Inheritance
InteractionAnnotation
Derived
Inherited Members
Extension Methods

Constructors

InteractionAnnotation(string)

Initializes a new annotation with the given discriminator.

protected InteractionAnnotation(string type)

Parameters

type string

The type discriminator.

Properties

EndIndex

End of the attributed segment, exclusive.

[JsonPropertyName("end_index")]
public int? EndIndex { get; set; }

Property Value

int?

ExtensionData

Fields returned by the API that this SDK does not model yet.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

StartIndex

Start of the segment of the response that is attributed to this annotation.

[JsonPropertyName("start_index")]
public int? StartIndex { get; set; }

Property Value

int?

Type

The annotation type discriminator.

[JsonPropertyName("type")]
public string Type { get; }

Property Value

string