Skip to content

HarnessScenarioVerificationContext

NexusLabs.Foundry.MicrosoftAgentFramework.Testing

HarnessScenarioVerificationContext Class

Contains the Harness lifecycle evidence supplied to VerifyHarness(HarnessScenarioVerificationContext).

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

Inheritance System.Object 🡒 HarnessScenarioVerificationContext

Implements System.IEquatable<HarnessScenarioVerificationContext>

Constructors

HarnessScenarioVerificationContext(string, string, string, string, IWorkspace, AgentSession, string, IReadOnlyList<string>, IReadOnlyList<string>, Exception) Constructor

Contains the Harness lifecycle evidence supplied to VerifyHarness(HarnessScenarioVerificationContext).

public HarnessScenarioVerificationContext(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);

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.

Properties

HarnessScenarioVerificationContext.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>

HarnessScenarioVerificationContext.ExecutionError Property

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

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

Property Value

System.Exception

HarnessScenarioVerificationContext.OrchestrationId Property

The runner-issued orchestration identity.

public string OrchestrationId { get; init; }

Property Value

System.String

HarnessScenarioVerificationContext.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>

HarnessScenarioVerificationContext.ResponseText Property

The final response text, or null if execution failed.

public string? ResponseText { get; init; }

Property Value

System.String

HarnessScenarioVerificationContext.ScenarioName Property

The scenario name.

public string ScenarioName { get; init; }

Property Value

System.String

HarnessScenarioVerificationContext.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

HarnessScenarioVerificationContext.SessionId Property

The runner-issued session identity.

public string SessionId { get; init; }

Property Value

System.String

HarnessScenarioVerificationContext.UserId Property

The runner-issued user identity.

public string UserId { get; init; }

Property Value

System.String

HarnessScenarioVerificationContext.Workspace Property

The workspace after execution.

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

Property Value

NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace