agentscope-ai / agentscope-ai/agentscope-java

[Feature]: 希望能增加运行在沙箱内的shell工具

Open
#2,562 5 comments 0 reactions 0 assignees View on GitHub
area/extensions enhancement
Dominant language
Java
Stars
5.6k
Forks
1.3k
Avg merge
4d 12h
Merged PRs (30d)
77

Description

**AgentScope-Java is an open-source project. To involve a broader community, we recommend asking your questions in English.**

**Is your feature request related to a problem? Please describe.**
目前,文件系统如果使用沙箱模式,每次对话开始会创建沙箱,结束后会销毁沙箱。创建沙箱需要不少时间,IsolationScope.AGENT和GlOBAL模式下还需要等锁,相对于RemoteFilesystemSpec来说,沙箱的效率及其低下。

**Describe the solution you'd like**
沙箱解决的不就是shell命令安全执行的问题吗?那能不能提供一个这样的io.agentscope.core.tool.AgentTool:
需要执行shell时,把当前工作区的文件复制到沙箱内,然后在沙箱内安全地执行shell。希望还能由用户配置沙箱销毁策略,我希望能有以下策略:
1:本次对话结束立即销毁
2:沙箱启动后开启定时器,在经过用户设定的时间后,销毁(也可配置仅关闭,方便下次快速启动)。当本沙箱被使用时,刷新该时间

**Additional context**
agentscope 2.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.