Table of Contents

Class VectorStoreExtensions

Namespace
OpenAI.VectorStores
Assembly
OpenAI-DotNet.dll
public static class VectorStoreExtensions
Inheritance
VectorStoreExtensions
Inherited Members

Methods

UpdateAsync(VectorStoreFileBatchResponse, CancellationToken)

Get the latest status of the VectorStoreFileBatchResponse.

public static Task<VectorStoreFileBatchResponse> UpdateAsync(this VectorStoreFileBatchResponse vectorStoreFileBatchResponse, CancellationToken cancellationToken = default)

Parameters

vectorStoreFileBatchResponse VectorStoreFileBatchResponse

VectorStoreFileBatchResponse.

cancellationToken CancellationToken

Optional, CancellationToken.

Returns

Task<VectorStoreFileBatchResponse>

VectorStoreFileBatchResponse.

WaitForStatusChangeAsync(VectorStoreFileBatchResponse, int?, int?, CancellationToken)

Waits for Status to change.

public static Task<VectorStoreFileBatchResponse> WaitForStatusChangeAsync(this VectorStoreFileBatchResponse vectorStoreFileBatchResponse, int? pollingInterval = null, int? timeout = null, CancellationToken cancellationToken = default)

Parameters

vectorStoreFileBatchResponse VectorStoreFileBatchResponse

VectorStoreFileBatchResponse.

pollingInterval int?

Optional, time in milliseconds to wait before polling status.

timeout int?

Optional, timeout in seconds to cancel polling.
Defaults to 30 seconds.
Set to -1 for indefinite.

cancellationToken CancellationToken

Optional, CancellationToken.

Returns

Task<VectorStoreFileBatchResponse>

VectorStoreFileBatchResponse.