Partager via


MessageTextContent Class

Definition

A representation of a textual item of thread message content.

public class MessageTextContent : Azure.AI.OpenAI.Assistants.MessageContent, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Assistants.MessageTextContent>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Assistants.MessageTextContent>
type MessageTextContent = class
    inherit MessageContent
    interface IJsonModel<MessageTextContent>
    interface IPersistableModel<MessageTextContent>
Public Class MessageTextContent
Inherits MessageContent
Implements IJsonModel(Of MessageTextContent), IPersistableModel(Of MessageTextContent)
Inheritance
MessageTextContent
Implements

Properties

Annotations

A list of annotations associated with this text. Please note MessageTextAnnotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageTextFileCitationAnnotation and MessageTextFilePathAnnotation.

Text

The text data.

Explicit Interface Implementations

IJsonModel<MessageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from MessageContent)
IJsonModel<MessageTextContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MessageTextContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MessageContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from MessageContent)
IPersistableModel<MessageTextContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageTextContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MessageTextContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to