Поделиться через


PersistentAgentFileInfo Class

Definition

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

public class PersistentAgentFileInfo : System.ClientModel.Primitives.IJsonModel<Azure.AI.Agents.Persistent.PersistentAgentFileInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Agents.Persistent.PersistentAgentFileInfo>
type PersistentAgentFileInfo = class
    interface IJsonModel<PersistentAgentFileInfo>
    interface IPersistableModel<PersistentAgentFileInfo>
Public Class PersistentAgentFileInfo
Implements IJsonModel(Of PersistentAgentFileInfo), IPersistableModel(Of PersistentAgentFileInfo)
Inheritance
PersistentAgentFileInfo
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.

Status

The state of the file. This field is available in Azure OpenAI only.

StatusDetails

The error message with details in case processing of this file failed. This field is available in Azure OpenAI only.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<PersistentAgentFileInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<PersistentAgentFileInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<PersistentAgentFileInfo>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<PersistentAgentFileInfo>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<PersistentAgentFileInfo>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to