You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rewrite aiosandbox example with filesystem.Backend middleware
- Adapt backend to eino v0.8.1 API (FileContent return type, Shell interface)
- Fix GrepRaw: support regex, add all GrepRequest params (-i, -U, -A, -B, -t)
- Fix LsInfo: populate IsDir/Size/ModifiedAt, convert unix timestamp to ISO 8601
- Add sandbox lifecycle management via veFaaS SDK (Create/Describe/Kill)
- Support Direct mode (existing sandbox) and Managed mode (auto create/kill)
- Use faasInstanceName query param instead of custom headers
- Remove deep-aiosandbox example (depends on unpublished commandline/aiosandbox)
Copy file name to clipboardExpand all lines: adk/middleware/aiosandbox-backend/README.md
+69-37Lines changed: 69 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# AIO Sandbox Filesystem Middleware Example
2
2
3
-
This example demonstrates how to use the Deep Agent with [AIO Sandbox](https://github.com/agent-infra/sandbox)
3
+
This example demonstrates how to use the Deep Agent with [AIO Sandbox](https://github.com/agent-infra/sandbox)
4
4
5
5
You can access AIO Sandbox through [Volcano Engine veFaaS Sandbox](https://www.volcengine.com/docs/6662/1802770) to quickly get a secure isolated code execution environment.
6
6
@@ -10,9 +10,10 @@ This example demonstrates how to implement a custom `filesystem.Backend` and use
10
10
11
11
The `filesystem.Backend` interface allows you to plug in any file system implementation. This example shows how to:
12
12
13
-
1. Implement the `filesystem.Backend` interface using AIO Sandbox SDK
14
-
2. Create a filesystem middleware with the custom backend
15
-
3. Use the middleware with a deep agent
13
+
1. Implement the `filesystem.Backend` interface using AIO Sandbox SDK (data plane)
14
+
2. Manage sandbox lifecycle via veFaaS API (control plane)
15
+
3. Create a filesystem middleware with the custom backend
16
+
4. Use the middleware with a deep agent
16
17
17
18
## Architecture
18
19
@@ -25,11 +26,13 @@ The `filesystem.Backend` interface allows you to plug in any file system impleme
0 commit comments