Freigeben über


KernelSearchResults<T> Constructor

Definition

Represents the search results returned from a ITextSearch service.

public KernelSearchResults(System.Collections.Generic.IAsyncEnumerable<T> results, long? totalCount = default, System.Collections.Generic.IReadOnlyDictionary<string,object?>? metadata = default);
new Microsoft.SemanticKernel.Data.KernelSearchResults<'T> : System.Collections.Generic.IAsyncEnumerable<'T> * Nullable<int64> * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.SemanticKernel.Data.KernelSearchResults<'T>
Public Sub New (results As IAsyncEnumerable(Of T), Optional totalCount As Nullable(Of Long) = Nothing, Optional metadata As IReadOnlyDictionary(Of String, Object) = Nothing)

Parameters

results
IAsyncEnumerable<T>

The search results.

totalCount
Nullable<Int64>

The total count of results found by the search operation, or null if the count was not requested.

metadata
IReadOnlyDictionary<String,Object>

Metadata associated with the search results.

Remarks

Initializes a new instance of the KernelSearchResults<T> class.

Applies to