Share via


ChatMessageTextContentItem Class

Definition

A structured chat content item containing plain text.

public class ChatMessageTextContentItem : Azure.AI.Inference.ChatMessageContentItem, System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ChatMessageTextContentItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ChatMessageTextContentItem>
type ChatMessageTextContentItem = class
    inherit ChatMessageContentItem
    interface IJsonModel<ChatMessageTextContentItem>
    interface IPersistableModel<ChatMessageTextContentItem>
Public Class ChatMessageTextContentItem
Inherits ChatMessageContentItem
Implements IJsonModel(Of ChatMessageTextContentItem), IPersistableModel(Of ChatMessageTextContentItem)
Inheritance
ChatMessageTextContentItem
Implements

Constructors

ChatMessageTextContentItem(String)

Initializes a new instance of ChatMessageTextContentItem.

Properties

Text

The content of the message.

Explicit Interface Implementations

IJsonModel<ChatMessageContentItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from ChatMessageContentItem)
IJsonModel<ChatMessageTextContentItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ChatMessageTextContentItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatMessageContentItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from ChatMessageContentItem)
IPersistableModel<ChatMessageTextContentItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatMessageTextContentItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ChatMessageTextContentItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to