IResultStore.ReadResultsAsync Method
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.
Returns ScenarioRunResults for ScenarioRuns filtered by the specified
executionName
, scenarioName
, and iterationName
from
the store.
public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.Evaluation.Reporting.ScenarioRunResult> ReadResultsAsync (string? executionName = default, string? scenarioName = default, string? iterationName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ReadResultsAsync : string * string * string * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.Evaluation.Reporting.ScenarioRunResult>
Public Function ReadResultsAsync (Optional executionName As String = Nothing, Optional scenarioName As String = Nothing, Optional iterationName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of ScenarioRunResult)
Parameters
- executionName
- String
The ExecutionName by which the ScenarioRunResults should be filtered. If omitted, all ExecutionNames are considered.
- scenarioName
- String
The ScenarioName by which the ScenarioRunResults should be filtered.
If omitted, all ScenarioNames that are in scope based on the specified
executionName
filter are considered.
- iterationName
- String
The IterationName by which the ScenarioRunResults should be filtered.
If omitted, all IterationNames that are in scope based on the specified
executionName
, and scenarioName
filters are considered.
- cancellationToken
- CancellationToken
A CancellationToken that can cancel the operation.
Returns
The matching ScenarioRunResults.
Remarks
Returns all ScenarioRunResults in the store if executionName
, scenarioName
, and iterationName
are all omitted.
Applies to
.NET