Partager via


ISemanticTextMemory.GetCollectionsAsync(Kernel, CancellationToken) Method

Definition

Gets a group of all available collection names.

public System.Threading.Tasks.Task<System.Collections.Generic.IList<string>> GetCollectionsAsync (Microsoft.SemanticKernel.Kernel? kernel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetCollectionsAsync : Microsoft.SemanticKernel.Kernel * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<string>>
Public Function GetCollectionsAsync (Optional kernel As Kernel = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of String))

Parameters

kernel
Kernel

The Kernel containing services, plugins, and other state for use throughout the operation.

cancellationToken
CancellationToken

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

Returns

A group of collection names.

Applies to