你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AgentFile Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |