Remove non-existent purpose field from Files API examples (#1081)

The Files API upload endpoint does not accept a purpose parameter.
Drop it from the managed-agents skill examples (TS and curl).
This commit is contained in:
Lance Martin
2026-05-03 06:58:40 -07:00
committed by GitHub
parent 5128e1865d
commit d230a6dd6e
4 changed files with 2 additions and 5 deletions
@@ -63,7 +63,6 @@ Upload a file first via the Files API, then reference by `file_id` + `mount_path
// 1. Upload
const file = await client.beta.files.upload({
file: fs.createReadStream("data.csv"),
purpose: "agent",
});
// 2. Attach as a session resource