feat(integrations): Add E2BEnvironment for remote sandbox workspaces#6031
Open
Jacksunwei wants to merge 1 commit into
Open
feat(integrations): Add E2BEnvironment for remote sandbox workspaces#6031Jacksunwei wants to merge 1 commit into
Jacksunwei wants to merge 1 commit into
Conversation
Collaborator
|
Response from ADK Triaging Agent Hello @Jacksunwei, thank you for creating this PR! This is a great feature! To help get this reviewed and merged more smoothly, please address the following items in accordance with our contribution guidelines:
This information will help reviewers evaluate your PR more efficiently. Thanks again for your contribution! |
Collaborator
🔍 ADK Pull Request Analysis: PR #6031Title: feat(integrations): Add E2BEnvironment for remote sandbox workspaces Executive Summary
Detailed Findings & Analysis1. Objectives & Impact ("What does it do?")
2. Justification & Value ("Is it a valid and useful change?")
3. Principle & Style Alignment Checklist ("Does it follow rules?")
🛑 Review Decision GateI have completed my in-depth analysis of Pull Request #6031. Please review the findings above. How would you like to proceed with this Pull Request?
|
Provide a BaseEnvironment backed by an E2B sandbox, giving agents a persistent remote workspace for shell execution, file CRUD, and on-demand installs (pip/apt) without touching the host machine. The sandbox TTL is bounded to cap credit usage and is extended on each operation; an expired idle sandbox is transparently recreated.
Requires the new `e2b` extra. Includes a data-analysis sample that downloads a public dataset and analyzes it inside the sandbox.
from google.adk.integrations.e2b import E2BEnvironment
from google.adk.tools.environment import EnvironmentToolset
toolset = EnvironmentToolset(environment=E2BEnvironment())
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
E2BEnvironment, aBaseEnvironmentbacked by an E2B sandbox. It gives agents a persistent remote workspace for shell execution, file CRUD, and on-demand installs (pip/apt) without touching the host machine.e2bextra, so the base package stays lean.Usage
Test plan
pytest tests/unittests/integrations/e2b/(14 passed)pyright src/google/adk/integrations/e2b/_e2b_environment.py— 0 errorscontributing/samples/environment_and_skills/e2b_environment)E2B_API_KEY)