Skip to main content
Requires Python 3.11+ and the contree-sdk[langchain] extra. See LangChain DeepAgents for executable scenarios. Adapters accept the public executor contracts; they do not require concrete session implementations. Other inherited BaseSandbox tools belong to deepagents.

class ContreeAsyncSandbox

A deepagents sandbox with native asynchronous session operations.

Attributes

str

Methods

adownload_files()

required
list[FileDownloadResponse]

aexecute()

required
default:"None"
ExecuteResponse

aupload_files()

required
list[FileUploadResponse]

download_files()

required
list[FileDownloadResponse]

download_one_file()

required
FileDownloadResponse

execute()

required
default:"None"
ExecuteResponse

upload_files()

required
list[FileUploadResponse]

class ContreeSandbox

A deepagents adapter for any SyncExecutor implementation. Mutating calls on this adapter are serialized. The executor remains caller-owned. deepagents may dispatch async calls through a thread pool; use ContreeAsyncSandbox for a native async executor.

Attributes

str

Methods

download_files()

required
list[FileDownloadResponse]

download_one_file()

required
FileDownloadResponse

execute()

required
default:"None"
ExecuteResponse

upload_files()

required
list[FileUploadResponse]