MessageTextAnnotation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An abstract representation of an annotation to text thread message content. 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.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Assistants.UnknownMessageTextAnnotation))]
public abstract class MessageTextAnnotation : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Assistants.MessageTextAnnotation>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Assistants.MessageTextAnnotation>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.OpenAI.Assistants.UnknownMessageTextAnnotation))>]
type MessageTextAnnotation = class
interface IJsonModel<MessageTextAnnotation>
interface IPersistableModel<MessageTextAnnotation>
Public MustInherit Class MessageTextAnnotation
Implements IJsonModel(Of MessageTextAnnotation), IPersistableModel(Of MessageTextAnnotation)
- Inheritance
-
MessageTextAnnotation
- Derived
- Attributes
- Implements
Constructors
MessageTextAnnotation(String, Int32, Int32) |
Initializes a new instance of MessageTextAnnotation. |
Properties
EndIndex |
The last text index associated with this text annotation. |
StartIndex |
The first text index associated with this text annotation. |
Text |
The textual content associated with this text annotation item. |
Explicit Interface Implementations
IJsonModel<MessageTextAnnotation>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<MessageTextAnnotation>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<MessageTextAnnotation>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<MessageTextAnnotation>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<MessageTextAnnotation>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |