from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.vector_stores.cancel_file_batch(vector_store_id="vs_abc123", batch_id="vsfb_abc123")
# Handle response
print(res){
"id": "vsfb_abc123",
"object": "vector_store.file_batch",
"created_at": 1704067200,
"vector_store_id": "vs_abc123",
"status": "cancelled",
"file_counts": {
"in_progress": 0,
"completed": 0,
"failed": 0,
"cancelled": 3,
"total": 3
}
}Cancels an in-progress file batch operation.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.vector_stores.cancel_file_batch(vector_store_id="vs_abc123", batch_id="vsfb_abc123")
# Handle response
print(res){
"id": "vsfb_abc123",
"object": "vector_store.file_batch",
"created_at": 1704067200,
"vector_store_id": "vs_abc123",
"status": "cancelled",
"file_counts": {
"in_progress": 0,
"completed": 0,
"failed": 0,
"cancelled": 3,
"total": 3
}
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
The ID of the vector store that the file batch belongs to.
The ID of the file batch to cancel.
OK
A batch of files attached to a vector store.
The identifier, which can be referenced in API endpoints.
The object type, which is always 'vector_store.file_batch'.
The Unix timestamp (in seconds) for when the vector store files batch was created.
-9007199254740991 <= x <= 9007199254740991The ID of the vector store that the File is attached to.
The status of the vector store files batch. 'in_progress' means files are being processed, 'completed' means all files have been processed, 'cancelled' means the batch was cancelled, 'failed' means the batch failed.
in_progress, completed, cancelled, failed File processing status counts.
Show child attributes
Was this page helpful?