อ่านในภาษาอังกฤษ

แชร์ผ่าน


ReportingConfiguration.CreateScenarioRunAsync Method

Definition

Creates a new ScenarioRun with the specified scenarioName and iterationName.

C#
public System.Threading.Tasks.ValueTask<Microsoft.Extensions.AI.Evaluation.Reporting.ScenarioRun> CreateScenarioRunAsync(string scenarioName, string iterationName = "1", System.Collections.Generic.IEnumerable<string>? additionalCachingKeys = default, System.Threading.CancellationToken cancellationToken = default);

Parameters

scenarioName
String

The ScenarioName.

iterationName
String

The IterationName. Uses default value "1" if omitted.

additionalCachingKeys
IEnumerable<String>

An optional collection of unique strings that should be hashed when generating the cache keys for cached AI responses. See CachingKeys for more information about this concept.

cancellationToken
CancellationToken

A CancellationToken that can cancel the operation.

Returns

A new ScenarioRun with the specified scenarioName and iterationName.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)