Create a Collection
Parameters
str | None
Optional ID for the new collection. If not provided, one is generated automatically.
str | None
Display name for the collection.
str | None
Description of the collection’s purpose.
dict | None
Arbitrary key-value metadata to attach to the collection.
Returns
str
The ID of the created collection.
List Collections
Returns
list[dict]
List of collection summary objects, including ownership, your permission level, and precomputed counts.
Get a Collection
Parameters
str
required
ID of the collection to retrieve.
Returns
dict
Collection details with ownership, your permission level, and precomputed counts.
The metadata blob is no longer included on this response. Use
get_collection_metadata to retrieve it.Errors
HTTPError (404)— Collection not found
Update a Collection
Parameters
str
required
ID of the collection to update.
str | None
New name. If
None, the name is left unchanged.str | None
New description. If
None, the description is left unchanged.Delete Agent Runs
Remove specific agent runs from a collection.Parameters
str
required
ID of the collection.
list[str]
required
List of agent run IDs to delete.
Returns
int
Number of agent runs deleted.
Errors
ValueError—agent_run_idsis emptyHTTPError (404)— Collection not found

