agentscope-ai / agentscope-ai/agentscope-runtime-java

[Feature Request] Support Sandbox Snapshots for Stateful Multi-Turn Code Execution

Đang mở
#76 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Java
Star
184
Fork
38
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

Currently, each tool invocation that uses the sandbox (e.g., code interpreter) starts from a **clean or fixed initial state**. This forces users to:

- Re-declare variables, re-import libraries, or re-upload data in every turn
- Avoid multi-step coding workflows (e.g., “load data → plot → refine”)
- Work around state loss with brittle workarounds (e.g., concatenating all code into one block)

To enable **interactive, stateful programming sessions** (like Jupyter Notebook), we propose adding **sandbox snapshot support**:

> After a successful code execution, the sandbox can **save its current runtime state** (e.g., Python globals, installed packages, file system changes).
> Subsequent calls can **resume from that snapshot**, preserving context across turns.

This is especially valuable for:

- Data analysis agents
- Long-running agent workflows with iterative coding

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.