LangSmithSandbox(
self,
sandbox: Sandbox,
)Edit a file by replacing string occurrences. Returns EditResult.
List all files in a directory with metadata.
Async version of ls.
Read file content with line numbers.
Async version of read.
Search for a literal text pattern in files.
Async version of grep.
Find files matching a glob pattern.
Async version of glob.
Write content to a new file in the filesystem, error if file exists.
Async version of write.
Perform exact string replacements in an existing file.
Async version of edit.
Async version of upload_files.
Async version of download_files.
List all files in a directory with metadata.
Async version of ls_info.
Find files matching a glob pattern.
Async version of glob_info.
Search for a literal text pattern in files.
Async version of grep_raw.
| Name | Type | Description |
|---|---|---|
sandbox* | Sandbox | LangSmith Sandbox instance to wrap. |
| Name | Type |
|---|---|
| sandbox | Sandbox |
LangSmith sandbox implementation conforming to SandboxBackendProtocol.
This implementation inherits all file operation methods from BaseSandbox
and only implements the execute() method using LangSmith's API.