AgentFileStore Class

Definition

Provides an abstract base class for file storage operations.

public abstract class AgentFileStore
type AgentFileStore = class
Public MustInherit Class AgentFileStore
Inheritance
AgentFileStore
Derived

Remarks

All paths are relative to an implementation-defined root. Implementations may map these paths to a local file system, in-memory store, remote blob storage, or other mechanisms.

Paths use forward slashes as separators and must not escape the root (e.g., via .. segments). It is up to each implementation to ensure that this is enforced.

Constructors

Name Description
AgentFileStore()

Methods

Name Description
CreateDirectoryAsync(String, CancellationToken)

Ensures a directory exists, creating it if necessary.

DeleteAsync(String, CancellationToken)

Deletes a file.

FileExistsAsync(String, CancellationToken)

Checks whether a file exists.

ListChildrenAsync(String, CancellationToken)

Lists the direct children (files and subdirectories) of a directory.

ReadAsync(String, CancellationToken)

Reads the content of a file.

SearchAsync(String, String, String, Boolean, CancellationToken)

Searches for files whose content matches a regular expression pattern.

WriteAsync(String, String, CancellationToken)

Writes content to a file, creating or overwriting it.

Applies to