ScenarioRun Class
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 a single execution of a particular iteration of a particular scenario under evaluation.
public ref class ScenarioRun sealed : IAsyncDisposable
public sealed class ScenarioRun : IAsyncDisposable
type ScenarioRun = class
interface IAsyncDisposable
Public NotInheritable Class ScenarioRun
Implements IAsyncDisposable
- Inheritance
-
ScenarioRun
- Implements
Remarks
Each execution of an evaluation run is assigned a unique ExecutionName. A single such evaluation run can contain evaluations for multiple scenarios each with a unique ScenarioName. The execution of each such scenario in turn can include multiple iterations each with a unique IterationName.
Properties
ChatConfiguration |
A ChatConfiguration that specifies the IChatClient and the IEvaluationTokenCounter that are used by AI-based IEvaluators that are invoked as part of the evaluation of this ScenarioRun. |
ExecutionName | |
IterationName |
The name of the iteration that this ScenarioRun represents. |
ScenarioName |
The name of the scenario that this ScenarioRun represents. |
Methods
DisposeAsync() |
Disposes the ScenarioRun and writes the ScenarioRunResult to the configured IResultStore. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
EvaluateAsync(IEnumerable<ChatMessage>, ChatMessage, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Extension Methods
EvaluateAsync(ScenarioRun, ChatMessage, ChatMessage, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(ScenarioRun, ChatMessage, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(ScenarioRun, String, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(ScenarioRun, String, String, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
ConfigureAwait(IAsyncDisposable, Boolean) |
Configures how awaits on the tasks returned from an async disposable will be performed. |