Create a Collection
Parameters
Optional ID for the new collection. If not provided, one is generated automatically.
Display name for the collection.
Description of the collection’s purpose.
Arbitrary key-value metadata to attach to the collection.
Returns
The ID of the created collection.
List Collections
Returns
List of collection objects.
Get a Collection
Parameters
ID of the collection to retrieve.
Returns
The collection object with
id, name, description, created_at, and created_by.Errors
HTTPError (404)— Collection not found
Update a Collection
Parameters
ID of the collection to update.
New name. If
None, the name is left unchanged.New description. If
None, the description is left unchanged.Check if a Collection Exists
Parameters
ID of the collection to check.
Returns
True if the collection exists, False otherwise.Delete Agent Runs
Remove specific agent runs from a collection.Parameters
ID of the collection.
List of agent run IDs to delete.
Returns
Number of agent runs deleted.
Errors
ValueError—agent_run_idsis emptyHTTPError (404)— Collection not found

