mirror of
https://github.com/anthropics/skills.git
synced 2026-08-02 13:05:28 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user