from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Download artifact to sandbox
result = client.disks.artifacts.download_to_sandbox(
disk_id='disk-uuid',
file_path='/documents/',
filename='report.pdf',
sandbox_id='sandbox-uuid',
sandbox_path='/home/user/'
)
print(f"Success: {result.success}"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"success": true
}
}Download an artifact from disk storage to a sandbox environment
from acontext import AcontextClient
client = AcontextClient(api_key='sk_project_token')
# Download artifact to sandbox
result = client.disks.artifacts.download_to_sandbox(
disk_id='disk-uuid',
file_path='/documents/',
filename='report.pdf',
sandbox_id='sandbox-uuid',
sandbox_path='/home/user/'
)
print(f"Success: {result.success}"){
"code": 123,
"error": "<string>",
"msg": "<string>",
"data": {
"success": true
}
}Project Bearer token (e.g., "Bearer sk-ac-xxxx")
Disk ID
Download to sandbox request