generated from cloudwego/.github
-
Notifications
You must be signed in to change notification settings - Fork 250
feat(adk/backend): implement Agentkit Sandbox and Local filesystem backend adapters #651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
bb495e0 to
67e24fb
Compare
83ea7b9 to
ff469d8
Compare
040bf38 to
71388a9
Compare
43df9e9 to
0dc6242
Compare
e1c09df to
852a0c6
Compare
f60d7ef to
100cf07
Compare
hi-pender
reviewed
Feb 3, 2026
hi-pender
reviewed
Feb 3, 2026
hi-pender
reviewed
Feb 3, 2026
hi-pender
reviewed
Feb 3, 2026
hi-pender
reviewed
Feb 3, 2026
hi-pender
reviewed
Feb 4, 2026
…ckend adapters Introduces two new backend implementations for the adk/backend filesystem interface to support flexible file operations in different execution environments: a remote Agentkit Sandbox backend for secure isolated execution and a local backend for direct filesystem access. **Agentkit Sandbox Backend ** - Implements filesystem.Backend interface to integrate with Volcengine's Agentkit Sandbox API - Provides secure remote code execution with request signing using HMAC-SHA256 - Manages session lifecycle with automatic token refresh and expiration handling - Supports all core filesystem operations: LsInfo, Read, Write, Edit, GrepRaw, GlobInfo - Includes Python code templates for sandbox execution with proper error handling - Defines comprehensive API types for request/response structures **Local Backend (local)** - Implements filesystem.Backend interface for direct local filesystem operations - Supports directory listing (LsInfo) with configurable depth and ignore patterns - Provides file reading (Read) with line-based pagination (offset/limit support) - Enables file writing (Write) with automatic directory creation - Implements content search (GrepRaw) with regex pattern matching - Supports glob pattern matching (GlobInfo) for file discovery - Includes robust input validation (absolute path enforcement, permission checks) **Testing & Documentation** - Adds comprehensive unit tests for both backends (323 lines for agentkit, 700 lines for local) - Provides detailed README documentation with usage examples and API references - Includes example implementations demonstrating backend and middleware integration - Updates dependency management (go.mod/go.sum) with required packages **Technical Details** - Total additions: 4,216 lines across 16 files - Both backends implement the same filesystem.Backend interface for consistency - Error handling follows Go conventions with wrapped errors for context - Middleware examples demonstrate authentication and logging patterns
100cf07 to
c5f022a
Compare
hi-pender
approved these changes
Feb 4, 2026
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.
feat(adk/backend): implement Agentkit Sandbox and Local filesystem backend adapters
Introduces two new backend implementations for the adk/backend filesystem interface
to support flexible file operations in different execution environments: a remote
Agentkit Sandbox backend for secure isolated execution and a local backend for direct
filesystem access.
Agentkit Sandbox Backend
Local Backend (local)
Testing & Documentation
Technical Details