API ReferenceClient Methods
Request Management
Methods for retrieving and deleting requests and sessions.
Request Management
get_requests
Get requests with their associated interactions, grouped by session.
response = client.get_requests(
user_id="user_123",
top_k=50
)Prop
Type
delete_request
Delete a request and all its associated interactions.
response = client.delete_request(
request_id,
wait_for_response=False
)Prop
Type
delete_session
Delete all requests and interactions in a session.
response = client.delete_session(
session_id,
wait_for_response=False
)Prop
Type
Bulk Delete Operations
delete_requests_by_ids
Delete multiple requests by their IDs.
response = client.delete_requests_by_ids(request_ids=["req_1", "req_2"])Prop
Type
Returns: BulkDeleteResponse with success, deleted_count, and message
delete_all_interactions
Delete all requests and their associated interactions.
response = client.delete_all_interactions()Returns: BulkDeleteResponse with success, deleted_count, and message