Share via


IChromaClient.GetCollectionAsync(String, CancellationToken) Method

Definition

Returns collection model instance by name.

public System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Chroma.ChromaCollectionModel?> GetCollectionAsync (string collectionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCollectionAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.SemanticKernel.Connectors.Chroma.ChromaCollectionModel>
Public Function GetCollectionAsync (collectionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ChromaCollectionModel)

Parameters

collectionName
String

Collection name.

cancellationToken
CancellationToken

The CancellationToken to monitor for cancellation requests. The default is None.

Returns

Instance of ChromaCollectionModel model.

Applies to