feat: add all-in-one sandbox toolset#105
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an “all-in-one” (AIO) sandbox toolset to the built-in integration layer so a single sandbox can expose browser + code-interpreter capabilities, including file transfer/recordings and remote-access URL helpers, and threads the new local_artifact_dir option through the public integration wrappers.
Changes:
- Introduce
AioToolSetin the built-in sandbox integration and extend thesandbox_toolset(...)factory to supportTemplateType.AIO(and explicitly rejectTemplateType.CUSTOM). - Add AIO-specific tools for upload/download, recordings management, and remote CDP/VNC URL retrieval with headers intentionally not exposed.
- Add integration tests validating AIO factory behavior, tool exposure, local artifact dir constraints, and wrapper parameter forwarding.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
agentrun/integration/builtin/sandbox.py |
Adds AioToolSet, capability checks, local artifact dir handling, and updates the toolset factory for AIO/CUSTOM. |
agentrun/integration/langchain/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
agentrun/integration/langgraph/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
agentrun/integration/google_adk/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
agentrun/integration/crewai/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
agentrun/integration/pydantic_ai/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
agentrun/integration/agentscope/builtin.py |
Threads local_artifact_dir through sandbox_toolset(...) wrapper into built-in factory. |
tests/unittests/integration/test_aio_toolset.py |
Adds test coverage for AIO toolset behavior, path safety checks, and wrapper forwarding. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Fix bugs
Bug detail
Pull request tasks
Update docs
Reason for update
Pull request tasks
Add contributor
Contributed content
Content detail
Others
Reason for update