Backend that stores files in a LangSmith Hub agent repo (persistent).
class ContextHubBackendDelete a single file. Optional - backends that don't support file deletion can omit this.
Download multiple files. Optional - backends that don't support file download can omit this.
Edit a file by replacing string occurrences.
Return linked-entry paths mapped to their repo handles.
Structured glob matching returning FileInfo objects.
Search file contents for a literal text pattern.
Binary files (determined by MIME type) are skipped.
Return true if the hub repo already exists with at least one commit.
Structured listing with file metadata.
Lists files and directories in the specified directory (non-recursive). Directories have a trailing / in their path and is_dir=true.
Read file content.
For text files, content is paginated by line offset/limit. For binary files, the full raw Uint8Array content is returned.
Read file content as raw FileData.
Upload multiple files. Optional - backends that don't support file upload can omit this.
Write content to a file, creating it or overwriting it if it already exists.