次の方法で共有


PersistentAgentsModelFactory.PersistentAgentFile Method

Definition

Initializes a new instance of PersistentAgentFileInfo.

public static Azure.AI.Agents.Persistent.PersistentAgentFileInfo PersistentAgentFile(string id = default, int size = 0, string filename = default, DateTimeOffset createdAt = default, Azure.AI.Agents.Persistent.PersistentAgentFilePurpose purpose = default);
static member PersistentAgentFile : string * int * string * DateTimeOffset * Azure.AI.Agents.Persistent.PersistentAgentFilePurpose -> Azure.AI.Agents.Persistent.PersistentAgentFileInfo
Public Shared Function PersistentAgentFile (Optional id As String = Nothing, Optional size As Integer = 0, Optional filename As String = Nothing, Optional createdAt As DateTimeOffset = Nothing, Optional purpose As PersistentAgentFilePurpose = Nothing) As PersistentAgentFileInfo

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
PersistentAgentFilePurpose

The intended purpose of a file.

Returns

A new PersistentAgentFileInfo instance for mocking.

Applies to