다음을 통해 공유


OpenAIFile Class

Definition

Represents an assistant that can call the model and use tools.

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

Properties

CreatedAt

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

Filename

The name of the file.

Id

The identifier, which can be referenced in API endpoints.

Purpose

The intended purpose of a file.

Size

The size of the file, in bytes.

Explicit Interface Implementations

IJsonModel<OpenAIFile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<OpenAIFile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OpenAIFile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OpenAIFile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<OpenAIFile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to