Freigeben über


OpenAIFileService.GetFilesAsync Method

Definition

Overloads

GetFilesAsync(CancellationToken)

Retrieve metadata for all previously uploaded files.

GetFilesAsync(Nullable<OpenAIFilePurpose>, CancellationToken)

Retrieve metadata for previously uploaded files

GetFilesAsync(CancellationToken)

Retrieve metadata for all previously uploaded files.

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFileReference>> GetFilesAsync (System.Threading.CancellationToken cancellationToken = default);
member this.GetFilesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFileReference>>
Public Function GetFilesAsync (Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of OpenAIFileReference))

Parameters

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The metadata of all uploaded files.

Applies to

GetFilesAsync(Nullable<OpenAIFilePurpose>, CancellationToken)

Retrieve metadata for previously uploaded files

public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFileReference>> GetFilesAsync (Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFilePurpose? filePurpose, System.Threading.CancellationToken cancellationToken = default);
member this.GetFilesAsync : Nullable<Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFilePurpose> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIFileReference>>
Public Function GetFilesAsync (filePurpose As Nullable(Of OpenAIFilePurpose), Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of OpenAIFileReference))

Parameters

filePurpose
Nullable<OpenAIFilePurpose>

The purpose of the files by which to filter.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

The metadata of all uploaded files.

Applies to