SessionsPythonPlugin.UploadFileAsync(String, String) Method

Definition

Upload a file to the session pool.

[Microsoft.SemanticKernel.KernelFunction]
public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.Core.CodeInterpreter.SessionsRemoteFileMetadata> UploadFileAsync(string remoteFilePath, string? localFilePath);
[<Microsoft.SemanticKernel.KernelFunction>]
member this.UploadFileAsync : string * string -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Plugins.Core.CodeInterpreter.SessionsRemoteFileMetadata>
Public Function UploadFileAsync (remoteFilePath As String, localFilePath As String) As Task(Of SessionsRemoteFileMetadata)

Parameters

remoteFilePath
String

The path to the file in the session.

localFilePath
String

The path to the file on the local machine.

Returns

The metadata of the uploaded file.

Attributes

Exceptions

Applies to