Table of Contents

Class Annotation

Namespace
OpenAI
Assembly
OpenAI-DotNet.dll
public sealed class Annotation
Inheritance
Annotation
Inherited Members

Properties

EndIndex

[JsonInclude]
[JsonPropertyName("end_index")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? EndIndex { get; }

Property Value

int?

FileCitation

A citation to a file.

[JsonInclude]
[JsonPropertyName("file_citation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FileCitation FileCitation { get; }

Property Value

FileCitation

FilePath

A path to a file.

[JsonInclude]
[JsonPropertyName("file_path")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public FilePath FilePath { get; }

Property Value

FilePath

Index

[JsonInclude]
[JsonPropertyName("index")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public int? Index { get; }

Property Value

int?

StartIndex

[JsonInclude]
[JsonPropertyName("start_index")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? StartIndex { get; }

Property Value

int?

Text

The text in the message content that needs to be replaced.

[JsonInclude]
[JsonPropertyName("text")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string Text { get; }

Property Value

string

Type

[JsonInclude]
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonStringEnumConverter<AnnotationType>))]
public AnnotationType Type { get; }

Property Value

AnnotationType

Methods

AppendFrom(Annotation)

public void AppendFrom(Annotation other)

Parameters

other Annotation