LangSmith sandbox backend implementation.
Result of code execution.
Simplified schema optimized for LLM consumption.
Result of a single file download operation.
The response is designed to allow partial success in batch operations. The errors are standardized using FileOperationError literals for certain recoverable conditions for use cases that involve LLMs performing file operations.
Result of a single file upload operation.
The response is designed to allow partial success in batch operations. The errors are standardized using FileOperationError literals for certain recoverable conditions for use cases that involve LLMs performing file operations.
Base sandbox implementation with execute() as abstract method.
This class provides default implementations for all protocol methods using shell commands. Subclasses only need to implement execute().
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.