AgentSessionFiles Class

Definition

Session-scoped file operations for hosted agent sandboxes. These endpoints enable uploading, downloading, listing, and deleting files within a live ADC sandbox session. All file content is streamed end-to-end (no buffering in Agents service memory). Sessions are scoped to agent endpoints (not individual versions), allowing the endpoint to evolve the backing agent version independently of the session lifecycle.

public class AgentSessionFiles
type AgentSessionFiles = class
Public Class AgentSessionFiles
Inheritance
AgentSessionFiles

Constructors

Name Description
AgentSessionFiles()

Initializes a new instance of AgentSessionFiles for mocking.

Properties

Name Description
Pipeline

The HTTP pipeline for sending and receiving REST requests and responses.

Methods

Name Description
DeleteSessionFile(String, String, String, Nullable<Boolean>, CancellationToken)

Delete a file or directory from the session sandbox. If recursive is false (default) and the target is a non-empty directory, the API returns 409 Conflict.

DeleteSessionFileAsync(String, String, String, Nullable<Boolean>, CancellationToken)

Delete a file or directory from the session sandbox. If recursive is false (default) and the target is a non-empty directory, the API returns 409 Conflict.

DownloadSessionFile(String, String, String, String, CancellationToken)

Download a file from the session sandbox as a binary stream. Also return file as binary data.

DownloadSessionFileAsync(String, String, String, String, CancellationToken)

Download a file from the session sandbox as a binary stream. Also return file as binary data.

GetSessionFiles(String, String, String, CancellationToken)

[Protocol Method] List files and directories at a given path in the session sandbox. Returns only the immediate children of the specified directory (non-recursive).

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetSessionFilesAsync(String, String, String, CancellationToken)

[Protocol Method] List files and directories at a given path in the session sandbox. Returns only the immediate children of the specified directory (non-recursive).

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UploadSessionFile(String, String, String, String, CancellationToken)

Upload a file to the session sandbox via binary stream. Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
UploadSessionFileAsync(String, String, String, String, CancellationToken)

Upload a file to the session sandbox via binary stream. Maximum file size is 50 MB. Uploads exceeding this limit return 413 Payload Too Large.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

Applies to