FileClientGetFileAsync Method

Gets the metadata for the given RemoteFile.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<RemoteFile> GetFileAsync(
	string name,
	CancellationToken cancellationToken = default
)

Parameters

name  String
The name of the RemoteFile to get.
cancellationToken  CancellationToken  (Optional)

[Missing <param name="cancellationToken"/> documentation for "M:GenerativeAI.Clients.FileClient.GetFileAsync(System.String,System.Threading.CancellationToken)"]

Return Value

TaskRemoteFile
The RemoteFile information.

See Also