feat: enhance sandbox api

This commit is contained in:
youhuanghe
2026-03-24 01:45:01 +00:00
committed by WangCham
parent 9e0fa375e9
commit bfeb8315aa
3 changed files with 39 additions and 3 deletions

View File

@@ -208,6 +208,7 @@ class BoxService:
return {
'session_id': spec.session_id,
'workdir': spec.workdir,
'mount_path': spec.mount_path,
'timeout_sec': spec.timeout_sec,
'network': spec.network.value,
'image': spec.image,

View File

@@ -55,7 +55,18 @@ class NativeToolLoader(loader.ToolLoader):
},
'workdir': {
'type': 'string',
'description': 'Absolute working directory path inside the sandbox. Defaults to /workspace.',
'description': (
'Absolute working directory path inside the sandbox. '
'Defaults to mount_path, or /workspace when mount_path is omitted.'
),
'default': '/workspace',
},
'mount_path': {
'type': 'string',
'description': (
'Absolute sandbox path where host_path is mounted. '
'Defaults to /workspace. When omitted, workdir defaults to the same path.'
),
'default': '/workspace',
},
'timeout_sec': {