agentscope-ai / agentscope-ai/agentscope-java

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

Aperta
#2,562 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area/extensions enhancement
Lingua principale
Java
Stelle
5.6k
Fork
1.3k
Merge medio
4g 12h
PR unite (30g)
77

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.