Skip to content

ScenarioRunResult

NexusLabs.Foundry.MicrosoftAgentFramework.Testing

ScenarioRunResult Class

Result of running a single IAgentScenario.

public sealed record ScenarioRunResult : System.IEquatable<NexusLabs.Foundry.MicrosoftAgentFramework.Testing.ScenarioRunResult>

Inheritance System.Object 🡒 ScenarioRunResult

Implements System.IEquatable<ScenarioRunResult>

Constructors

ScenarioRunResult(string, IWorkspace, IAgentRunDiagnostics, string, Exception, Exception, bool) Constructor

Result of running a single IAgentScenario.

public ScenarioRunResult(string ScenarioName, NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace Workspace, NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics.IAgentRunDiagnostics? Diagnostics, string? ResponseText, System.Exception? ExecutionError, System.Exception? VerificationError, bool Succeeded);

Parameters

ScenarioName System.String

The name of the scenario that was run.

Workspace NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace

The workspace the scenario executed against.

Diagnostics NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics.IAgentRunDiagnostics

Run diagnostics, or null when the agent produced none.

ResponseText System.String

The agent's final response text, or null when execution failed before producing one.

ExecutionError System.Exception

The exception thrown while running the agent, or null when execution completed.

VerificationError System.Exception

The exception thrown while verifying the scenario, or null when verification passed or never ran.

Succeeded System.Boolean

true when neither execution nor verification reported an error.

Properties

ScenarioRunResult.Diagnostics Property

Run diagnostics, or null when the agent produced none.

public NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics.IAgentRunDiagnostics? Diagnostics { get; init; }

Property Value

NexusLabs.Foundry.MicrosoftAgentFramework.Diagnostics.IAgentRunDiagnostics

ScenarioRunResult.ExecutionError Property

The exception thrown while running the agent, or null when execution completed.

public System.Exception? ExecutionError { get; init; }

Property Value

System.Exception

ScenarioRunResult.ResponseText Property

The agent's final response text, or null when execution failed before producing one.

public string? ResponseText { get; init; }

Property Value

System.String

ScenarioRunResult.ScenarioName Property

The name of the scenario that was run.

public string ScenarioName { get; init; }

Property Value

System.String

ScenarioRunResult.Succeeded Property

true when neither execution nor verification reported an error.

public bool Succeeded { get; init; }

Property Value

System.Boolean

ScenarioRunResult.VerificationError Property

The exception thrown while verifying the scenario, or null when verification passed or never ran.

public System.Exception? VerificationError { get; init; }

Property Value

System.Exception

ScenarioRunResult.Workspace Property

The workspace the scenario executed against.

public NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace Workspace { get; init; }

Property Value

NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace