Dela via


AgentFile Class

Definition

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

public class AgentFile : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.AgentFile>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.AgentFile>
type AgentFile = class
    interface IJsonModel<AgentFile>
    interface IPersistableModel<AgentFile>
Public Class AgentFile
Implements IJsonModel(Of AgentFile), IPersistableModel(Of AgentFile)
Inheritance
AgentFile
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<AgentFile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AgentFile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AgentFile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AgentFile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AgentFile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to