Skip to content

HarnessScenarioAgentContext

NexusLabs.Foundry.MicrosoftAgentFramework.Testing

HarnessScenarioAgentContext Class

Supplies the trusted inputs an IHarnessScenario uses to construct its agent.

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

Inheritance System.Object 🡒 HarnessScenarioAgentContext

Implements System.IEquatable<HarnessScenarioAgentContext>

Constructors

HarnessScenarioAgentContext(string, string, string, string, IServiceProvider, IWorkspace, IReadOnlyList<AIFunction>) Constructor

Supplies the trusted inputs an IHarnessScenario uses to construct its agent.

public HarnessScenarioAgentContext(string ScenarioName, string UserId, string OrchestrationId, string SessionId, System.IServiceProvider Services, NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace Workspace, System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction> GeneratedTools);

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.

Services System.IServiceProvider

Services used for generated-function activation and agent construction.

Workspace NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace

The seeded, per-run workspace.

GeneratedTools System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction>

Source-generated functions resolved without reflection fallback.

Properties

HarnessScenarioAgentContext.GeneratedTools Property

Source-generated functions resolved without reflection fallback.

public System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction> GeneratedTools { get; init; }

Property Value

System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.AIFunction>

HarnessScenarioAgentContext.OrchestrationId Property

The runner-issued orchestration identity.

public string OrchestrationId { get; init; }

Property Value

System.String

HarnessScenarioAgentContext.ScenarioName Property

The scenario name.

public string ScenarioName { get; init; }

Property Value

System.String

HarnessScenarioAgentContext.Services Property

Services used for generated-function activation and agent construction.

public System.IServiceProvider Services { get; init; }

Property Value

System.IServiceProvider

HarnessScenarioAgentContext.SessionId Property

The runner-issued session identity.

public string SessionId { get; init; }

Property Value

System.String

HarnessScenarioAgentContext.UserId Property

The runner-issued user identity.

public string UserId { get; init; }

Property Value

System.String

HarnessScenarioAgentContext.Workspace Property

The seeded, per-run workspace.

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

Property Value

NexusLabs.Foundry.MicrosoftAgentFramework.Workspace.IWorkspace