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:
@@ -168,7 +168,7 @@ The `Promise.all([stream, send])` shape works too, but stream-first is simpler a
|
||||
**The mounted resource has a different `file_id` than the file you uploaded.** Session creation makes a session-scoped copy.
|
||||
|
||||
```ts
|
||||
const uploaded = await client.beta.files.upload({ file, purpose: 'agent_resource' })
|
||||
const uploaded = await client.beta.files.upload({ file })
|
||||
// uploaded.id → the original file
|
||||
const session = await client.beta.sessions.create({
|
||||
/* ... */
|
||||
|
||||
Reference in New Issue
Block a user