你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MessageFile Class

Definition

Information about a file attached to an assistant thread message.

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

Properties

CreatedAt

The Unix timestamp, in seconds, representing when this object was created.

Id

The identifier, which can be referenced in API endpoints.

MessageId

The ID of the message that this file is attached to.

Explicit Interface Implementations

IJsonModel<MessageFile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MessageFile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MessageFile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageFile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MessageFile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to