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.
Property Value¶
System.Collections.Generic.IReadOnlyList<System.String>
HarnessScenarioRunResult.ExecutionError Property¶
The construction, session, or execution error, if any.
Property Value¶
HarnessScenarioRunResult.HarnessVerificationError Property¶
The VerifyHarness(HarnessScenarioVerificationContext) error, if any.
Property Value¶
HarnessScenarioRunResult.OrchestrationId Property¶
The runner-issued orchestration identity.
Property Value¶
HarnessScenarioRunResult.ResolvedGeneratedToolNames Property¶
Generated tool names resolved before construction.
Property Value¶
System.Collections.Generic.IReadOnlyList<System.String>
HarnessScenarioRunResult.ResponseText Property¶
The final response text, or null if execution failed.
Property Value¶
HarnessScenarioRunResult.ScenarioName Property¶
The scenario name.
Property Value¶
HarnessScenarioRunResult.Session Property¶
The created MAF session, or null if creation failed.
Property Value¶
Microsoft.Agents.AI.AgentSession
HarnessScenarioRunResult.SessionId Property¶
The runner-issued session identity.
Property Value¶
HarnessScenarioRunResult.Succeeded Property¶
true when execution and both verification passes completed without error.
Property Value¶
HarnessScenarioRunResult.UserId Property¶
The runner-issued user identity.
Property Value¶
HarnessScenarioRunResult.VerificationError Property¶
The base Verify(IWorkspace, IAgentRunDiagnostics) error, if any.
Property Value¶
HarnessScenarioRunResult.Workspace Property¶
The workspace after execution.
Property Value¶
NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace