다음을 통해 공유


AssistantFile Class

Definition

Information about a file attached to an assistant, as used by tools that can read files.

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

Properties

AssistantId

The assistant ID that the file is attached to.

CreatedAt

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

Id

The identifier, which can be referenced in API endpoints.

Explicit Interface Implementations

IJsonModel<AssistantFile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AssistantFile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AssistantFile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AssistantFile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AssistantFile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to