Share via


AnnotationFileCitation Class

Definition

A citation to a file.

public class AnnotationFileCitation : Azure.AI.AgentServer.Contracts.Generated.OpenAI.Annotation, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.AnnotationFileCitation>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.AnnotationFileCitation>
type AnnotationFileCitation = class
    inherit Annotation
    interface IUtf8JsonSerializable
    interface IJsonModel<AnnotationFileCitation>
    interface IPersistableModel<AnnotationFileCitation>
Public Class AnnotationFileCitation
Inherits Annotation
Implements IJsonModel(Of AnnotationFileCitation), IPersistableModel(Of AnnotationFileCitation)
Inheritance
AnnotationFileCitation
Implements

Constructors

Name Description
AnnotationFileCitation()

Initializes a new instance of AnnotationFileCitation for deserialization.

AnnotationFileCitation(AnnotationType, IDictionary<String,BinaryData>, String, Int32, String)

Initializes a new instance of AnnotationFileCitation.

AnnotationFileCitation(String, Int32, String)

Initializes a new instance of AnnotationFileCitation.

Properties

Name Description
FileId

The ID of the file.

Filename

The filename of the file cited.

Index

The index of the file in the list of files.

Type

Gets or sets the type.

(Inherited from Annotation)

Methods

Name Description
DeserializeAnnotationFileCitation(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<Annotation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from Annotation)
IJsonModel<Annotation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from Annotation)
IJsonModel<AnnotationFileCitation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AnnotationFileCitation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<Annotation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from Annotation)
IPersistableModel<Annotation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from Annotation)
IPersistableModel<Annotation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from Annotation)
IPersistableModel<AnnotationFileCitation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AnnotationFileCitation>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AnnotationFileCitation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to