feat(sandbox): add Tensorlake sandbox backend#1
Open
cooleel wants to merge 1 commit into
Open
Conversation
b926f5a to
a6a1719
Compare
dfcd5d7 to
c2df6ef
Compare
c2df6ef to
e0268e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Tensorlake-backed sandbox provider under
agents.extensions.sandbox.tensorlake, following the existing extension pattern used by the other cloud backends. ThetensorlakeSDK is imported lazily so users without the extra can still import the package.Highlights
uv sync --extra tensorlake(orpip install "openai-agents[tensorlake]").pause_on_exitfor suspend/resume of named sandboxes."tar"and"snapshot".Includes a docs reference page, a manual runner example at
examples/sandbox/extensions/tensorlake_runner.py, and a unit test suite.Demo
Run it with OPENAI_API_KEY and TENSORLAKE_API_KEY exported.
Test plan
make lint,make format,make typecheck,make testspass locally.examples/sandbox/extensions/tensorlake_runner.pyagainst a live Tensorlake account.
Checks
make lintandmake format