SessionsPythonPlugin.UploadFileAsync(String, String) 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.
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