feat:add custom mount on request #154
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Previously I only supported custom mounts via batchsandbox-template.yaml, which does not satisfy the need to dynamically mount per‑session data directories. Each user/agent session can generate files; when the container is destroyed and the session resumes, those files must be re-mounted and restored. Therefore the mount path needs to accept dynamic identifiers (e.g., uid-sessionid) so it can map back to the correct persisted data. This change adds request-level volumes and mounts to support that workflow.
Example (request-level mounts/volumes):
中文解释:
之前我做了在batchsandbox-template.yaml模板中自定义mount相关的处理,但无法满足动态加载数据目录的情况。
比如用户和智能体的每次会话都会产生一些数据文件,容器销毁后下次再接着对话时要把数据文件进行重新挂载恢复,所以挂载的文件目录应该支持传入类似uid-sessionid这种信息以便能够映射和恢复之前的数据文件,所以才有了这次的提交,请审阅
现在能够支持接口级别的自定义 :
Testing
Breaking Changes
Checklist