为什么沙箱相关提示词被注释了?
#10107
|
在文件astrbot/core/astr_main_agent_resources.py 中,与沙箱的相关提示词被注释掉了,是因为目前沙箱相关功能尚未完善,于是暂时注释掉的吗? 感谢回复! |
Answered by
Soulter
Sep 16, 2026
Replies: 1 comment 1 reply
|
注释的是早期写死的 Skills 引导,其中假定沙箱在 /app/skills/ 下预装了技能库。沙箱执行 Shell/Python 的提示仍然生效。目前 Skills 提示由系统根据实际启用的技能和路径动态生成,这几行属于历史遗留注释,不影响沙箱功能。 The commented-out section refers to an early, hard-coded "Skills" prompt, which assumed a pre-installed skills library at |
1 reply
Answer selected by
Soulter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

注释的是早期写死的 Skills 引导,其中假定沙箱在 /app/skills/ 下预装了技能库。沙箱执行 Shell/Python 的提示仍然生效。目前 Skills 提示由系统根据实际启用的技能和路径动态生成,这几行属于历史遗留注释,不影响沙箱功能。
The commented-out section refers to an early, hard-coded "Skills" prompt, which assumed a pre-installed skills library at
/app/skills/within the sandbox. The prompts for Shell/Python execution remain in effect. Currently, the Skills prompt is dynamically generated by the system based on the enabled skills and paths; these lines are merely legacy comments and do not affect sandbox functionality.