OpenAIClient.WaitForVectorStoreFileToCompleteAsync
OpenAIClient.WaitForVectorStoreFileToCompleteAsync method
Waits for a specific vector store file to complete asynchronously.
public Task<VectorStoreFileResponse> WaitForVectorStoreFileToCompleteAsync(string vectorStoreId,
string fileId, CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| vectorStoreId | String | The ID of the vector store containing the file. |
| fileId | String | The ID of the file to monitor until completion. |
| cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the final status of the file.
Exceptions
| exception | condition |
|---|---|
| AIClientException | Thrown when the vector store Id is null or empty. |
| AIClientException | Thrown when the file Id is null or empty. |
See Also
- class VectorStoreFileResponse
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF