AIClientModelFactory.AgentFile Method
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.
Initializes a new instance of AgentFile.
public static Azure.AI.Projects.AgentFile AgentFile (string id = default, int size = 0, string filename = default, DateTimeOffset createdAt = default, Azure.AI.Projects.AgentFilePurpose purpose = default);
static member AgentFile : string * int * string * DateTimeOffset * Azure.AI.Projects.AgentFilePurpose -> Azure.AI.Projects.AgentFile
Public Shared Function AgentFile (Optional id As String = Nothing, Optional size As Integer = 0, Optional filename As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional purpose As AgentFilePurpose = Nothing) As AgentFile
Parameters
- id
- String
The identifier, which can be referenced in API endpoints.
- size
- Int32
The size of the file, in bytes.
- filename
- String
The name of the file.
- createdAt
- DateTimeOffset
The Unix timestamp, in seconds, representing when this object was created.
- purpose
- AgentFilePurpose
The intended purpose of a file.
Returns
A new AgentFile instance for mocking.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for .NET