Start file upload
start_uploadOpens an upload session for a file and returns ways to send its bytes, enabling datasets to be created or versioned without passing file bytes through chat.
Instructions
Open an upload session for one file and return the ways to send its bytes.
One session carries one file. Train and test files (and an optional
validation file) are separate uploads, each with its own start_upload.
File bytes never travel through tool arguments or the conversation on any
channel:
A. Host file parameter (preferred where available). Hosts that support
openai/fileParams (Codex, ChatGPT) hydrate file from a sandbox path.
EasyDeploy then fetches the bytes server-side and the session goes
straight to RECEIVING, with no network needed from the sandbox. Poll
get_upload_status until READY, then call complete_upload.
B. Gateway PUT (default). Called without file, this returns
curl_command, the HTTP PUT that sends the file to EasyDeploy's upload
gateway. It runs in the shell where the file is, with FILE_PATH replaced by
the file's path. Max ~6 MB; it carries a single-use upload token, never the
API key. If the sandbox blocks network egress, next_steps names the exact
API host the user can allow.
C. Fetch from a share link. If the sandbox cannot reach the network but
the file sits at a shareable URL, upload_from_url with the returned
upload_request_id has EasyDeploy fetch it.
The returned next_steps is the ordered runbook with the ids filled in,
including the web model-builder fallback for hosts with no byte channel at
all. The model-builder URL for this environment comes from the API in the
fallback string of this result (for example
https://www.easydeploy.ai/model-builder).
dataset_id: omit it to create a new dataset when complete_upload
runs. Pass an existing dataset's id to add a new version to that dataset
instead; complete_upload's name is then ignored and the dataset
keeps its current name. The output carries dataset_id only when you
passed one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| filename | Yes | ||
| dataset_id | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||