KernelSearchResults<T> Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.