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.
Property Value¶
ScenarioRunResult.ResponseText Property¶
The agent's final response text, or null when execution failed before producing one.
Property Value¶
ScenarioRunResult.ScenarioName Property¶
The name of the scenario that was run.
Property Value¶
ScenarioRunResult.Succeeded Property¶
true when neither execution nor verification reported an error.
Property Value¶
ScenarioRunResult.VerificationError Property¶
The exception thrown while verifying the scenario, or null when verification passed or never ran.
Property Value¶
ScenarioRunResult.Workspace Property¶
The workspace the scenario executed against.
Property Value¶
NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace