Skip to content

HarnessScenarioRunResult

NexusLabs.Foundry.MicrosoftAgentFramework.Testing

HarnessScenarioRunResult Class

Reports the outcome and captured evidence of one IHarnessScenario run.

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

Inheritance System.Object 🡒 HarnessScenarioRunResult

Implements System.IEquatable<HarnessScenarioRunResult>

Constructors

HarnessScenarioRunResult(string, string, string, string, IWorkspace, AgentSession, string, IReadOnlyList<string>, IReadOnlyList<string>, Exception, Exception, Exception, bool) Constructor

Reports the outcome and captured evidence of one IHarnessScenario run.

public HarnessScenarioRunResult(string ScenarioName, string UserId, string OrchestrationId, string SessionId, NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace Workspace, Microsoft.Agents.AI.AgentSession? Session, string? ResponseText, System.Collections.Generic.IReadOnlyList<string> ResolvedGeneratedToolNames, System.Collections.Generic.IReadOnlyList<string> ExecutedGeneratedToolNames, System.Exception? ExecutionError, System.Exception? VerificationError, System.Exception? HarnessVerificationError, bool Succeeded);

Parameters

ScenarioName System.String

The scenario name.

UserId System.String

The runner-issued user identity.

OrchestrationId System.String

The runner-issued orchestration identity.

SessionId System.String

The runner-issued session identity.

Workspace NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace

The workspace after execution.

Session Microsoft.Agents.AI.AgentSession

The created MAF session, or null if creation failed.

ResponseText System.String

The final response text, or null if execution failed.

ResolvedGeneratedToolNames System.Collections.Generic.IReadOnlyList<System.String>

Generated tool names resolved before construction.

ExecutedGeneratedToolNames System.Collections.Generic.IReadOnlyList<System.String>

Generated tool names whose supplied function bodies were invoked.

ExecutionError System.Exception

The construction, session, or execution error, if any.

VerificationError System.Exception

The base Verify(IWorkspace, IAgentRunDiagnostics) error, if any.

HarnessVerificationError System.Exception

The VerifyHarness(HarnessScenarioVerificationContext) error, if any.

Succeeded System.Boolean

true when execution and both verification passes completed without error.

Properties

HarnessScenarioRunResult.ExecutedGeneratedToolNames Property

Generated tool names whose supplied function bodies were invoked.

public System.Collections.Generic.IReadOnlyList<string> ExecutedGeneratedToolNames { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>

HarnessScenarioRunResult.ExecutionError Property

The construction, session, or execution error, if any.

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

Property Value

System.Exception

HarnessScenarioRunResult.HarnessVerificationError Property

The VerifyHarness(HarnessScenarioVerificationContext) error, if any.

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

Property Value

System.Exception

HarnessScenarioRunResult.OrchestrationId Property

The runner-issued orchestration identity.

public string OrchestrationId { get; init; }

Property Value

System.String

HarnessScenarioRunResult.ResolvedGeneratedToolNames Property

Generated tool names resolved before construction.

public System.Collections.Generic.IReadOnlyList<string> ResolvedGeneratedToolNames { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<System.String>

HarnessScenarioRunResult.ResponseText Property

The final response text, or null if execution failed.

public string? ResponseText { get; init; }

Property Value

System.String

HarnessScenarioRunResult.ScenarioName Property

The scenario name.

public string ScenarioName { get; init; }

Property Value

System.String

HarnessScenarioRunResult.Session Property

The created MAF session, or null if creation failed.

public Microsoft.Agents.AI.AgentSession? Session { get; init; }

Property Value

Microsoft.Agents.AI.AgentSession

HarnessScenarioRunResult.SessionId Property

The runner-issued session identity.

public string SessionId { get; init; }

Property Value

System.String

HarnessScenarioRunResult.Succeeded Property

true when execution and both verification passes completed without error.

public bool Succeeded { get; init; }

Property Value

System.Boolean

HarnessScenarioRunResult.UserId Property

The runner-issued user identity.

public string UserId { get; init; }

Property Value

System.String

HarnessScenarioRunResult.VerificationError Property

The base Verify(IWorkspace, IAgentRunDiagnostics) error, if any.

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

Property Value

System.Exception

HarnessScenarioRunResult.Workspace Property

The workspace after execution.

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

Property Value

NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace